public Contract_AniDB_Character ToContract(string charType, AniDB_Seiyuu seiyuu) { var contract = new Contract_AniDB_Character { AniDB_CharacterID = AniDB_CharacterID, CharID = CharID, PicName = PicName, CreatorListRaw = CreatorListRaw, CharName = CharName, CharKanjiName = CharKanjiName, CharDescription = CharDescription, CharType = charType }; if (seiyuu != null) { contract.Seiyuu = seiyuu.ToContract(); } return(contract); }
public Contract_AniDB_Character ToContract(AniDB_Anime_Character charRel) { Contract_AniDB_Character contract = new Contract_AniDB_Character(); contract.AniDB_CharacterID = this.AniDB_CharacterID; contract.CharID = this.CharID; contract.PicName = this.PicName; contract.CreatorListRaw = this.CreatorListRaw; contract.CharName = this.CharName; contract.CharKanjiName = this.CharKanjiName; contract.CharDescription = this.CharDescription; contract.CharType = charRel.CharType; contract.Seiyuu = null; AniDB_Seiyuu seiyuu = this.GetSeiyuu(); if (seiyuu != null) { contract.Seiyuu = seiyuu.ToContract(); } return(contract); }
public Contract_AniDB_Character ToContract(string charType, AniDB_Seiyuu seiyuu) { var contract = new Contract_AniDB_Character { AniDB_CharacterID = AniDB_CharacterID, CharID = CharID, PicName = PicName, CreatorListRaw = CreatorListRaw, CharName = CharName, CharKanjiName = CharKanjiName, CharDescription = CharDescription, CharType = charType }; if (seiyuu != null) { contract.Seiyuu = seiyuu.ToContract(); } return contract; }