本文整理汇总了C#中Title.AddTag方法的典型用法代码示例。如果您正苦于以下问题:C# Title.AddTag方法的具体用法?C# Title.AddTag怎么用?C# Title.AddTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Title
的用法示例。
在下文中一共展示了Title.AddTag方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ConvertOMLSDKTitleToTitle
//.........这里部分代码省略.........
foreach (string genre in omlsdktitle.Genres)
{
_title.AddGenre(genre);
}
}
#endregion
#region Actring Roles
if (omlsdktitle.ActingRoles != null)
{
foreach (OMLSDKRole role in omlsdktitle.ActingRoles)
{
_title.AddActingRole(role.PersonName, role.RoleName);
}
}
#endregion
#region Non Acting Roles
if (omlsdktitle.NonActingRoles != null)
{
foreach (OMLSDKRole role in omlsdktitle.NonActingRoles)
{
_title.AddNonActingRole(role.PersonName, role.RoleName);
}
}
#endregion
#region Directors
if (omlsdktitle.Directors != null)
{
foreach (OMLSDKPerson person in omlsdktitle.Directors)
{
_title.AddDirector(ConvertOMLSDKPersonToPerson(person));
}
}
#endregion
#region Writers
if (omlsdktitle.Writers != null)
{
foreach (OMLSDKPerson person in omlsdktitle.Writers)
{
_title.AddWriter(ConvertOMLSDKPersonToPerson(person));
}
}
#endregion
#region Producers
if (omlsdktitle.Producers != null)
{
foreach (OMLSDKPerson person in omlsdktitle.Producers)
{
_title.AddProducer(ConvertOMLSDKPersonToPerson(person));
}
}
#endregion
#region Tags
if (omlsdktitle.Tags != null)
{
foreach (string tag in omlsdktitle.Tags)
{
_title.AddTag(tag);
}
}
#endregion
#region Audio Tracks
if (omlsdktitle.AudioTracks != null)
{
foreach (string track in omlsdktitle.AudioTracks)
{
_title.AddAudioTrack(track);
}
}
#endregion
#region Subtitles
if (omlsdktitle.Subtitles != null)
{
foreach (string subtitles in omlsdktitle.Subtitles)
{
_title.AddSubtitle(subtitles);
}
}
#endregion
#region Fanart Paths
if (omlsdktitle.FanArtPaths != null)
{
foreach (string path in omlsdktitle.FanArtPaths)
{
_title.AddFanArtImage(path);
}
}
#endregion
}
return _title;
}