using System; using System.Text; using Crosstales.Radio.Util; using UnityEngine; namespace Crosstales.Radio.Model.Entry { [Serializable] public class RadioEntryShoutcast : BaseRadioEntry { [Header("Source Settings")] [Tooltip("Shoutcast-ID for the radio.")] public string ShoutcastID; public RadioEntryShoutcast(RadioStation entry, string shoutcastID) : base(entry.Name, true, true, entry.Station, entry.Genres, entry.Rating, entry.Description, entry.Icon, entry.Format, entry.Bitrate, entry.ChunkSize, entry.BufferSize, entry.ExcludedCodec) { ShoutcastID = shoutcastID; } public override string ToString() { StringBuilder stringBuilder = new StringBuilder(base.ToString()); stringBuilder.Append(GetType().Name); stringBuilder.Append(Constants.TEXT_TOSTRING_START); stringBuilder.Append("ShoutcastID='"); stringBuilder.Append(ShoutcastID); stringBuilder.Append(Constants.TEXT_TOSTRING_DELIMITER_END); stringBuilder.Append(Constants.TEXT_TOSTRING_END); return stringBuilder.ToString(); } } }