TraktPlugin.GUI.GUIListItems.GetListItemSecondLabel C# (CSharp) Méthode

GetListItemSecondLabel() private méthode

private GetListItemSecondLabel ( TraktListItem listItem ) : string
listItem TraktPlugin.TraktAPI.DataStructures.TraktListItem
Résultat string
        private string GetListItemSecondLabel(TraktListItem listItem)
        {
            string retValue = string.Empty;

            switch (listItem.Type)
            {
                case "movie":
                    retValue = listItem.Movie.Year == null ? "----" : listItem.Movie.Year.ToString();
                    break;

                case "show":
                    retValue = listItem.Show.Year == null ? "----" : listItem.Show.Year.ToString();
                    break;

                case "season":
                    retValue = string.Format("{0} {1}", listItem.Season.EpisodeCount, Translation.Episodes);
                    break;

                case "episode":
                    retValue = listItem.Episode.FirstAired.FromISO8601().ToShortDateString();
                    break;

                case "person":
                    retValue = listItem.Person.Birthday;
                    break;
            }
            return retValue;
        }