コード例 #1
0
ファイル: AniDB_Character.cs プロジェクト: dizzydezz/jmm
		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;
		}
コード例 #2
0
        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;
        }