コード例 #1
0
        public string Serialize()
        {
            StringBuilder builder = new StringBuilder();

            AddVar(builder, " Error", Error.ToString(), true);
            AddVar(builder, " ErrorString", ErrorString);
            AddVar(builder, " LTouchVersion", ((int)LTouchVersion).ToString());
            if (XEXCRC != null)
            {
                AddVar(builder, " XEXCRC", ((int)XEXCRC.Status).ToString() + "|" + XEXCRC.Crc.ToString("X8"));
            }
            if (VideoCRC != null)
            {
                AddVar(builder, " VideoCRC", ((int)VideoCRC.Status).ToString() + "|" + VideoCRC.Crc.ToString("X8"));
            }
            if (V0CRC != null)
            {
                AddVar(builder, " V0CRC", ((int)V0CRC.Status).ToString() + "|" + V0CRC.Crc.ToString("X8"));
            }
            if (V1CRC != null)
            {
                AddVar(builder, " V1CRC", ((int)V1CRC.Status).ToString() + "|" + V1CRC.Crc.ToString("X8"));
            }
            if (PFICRC != null)
            {
                AddVar(builder, " PFICRC", ((int)PFICRC.Status).ToString() + "|" + PFICRC.Crc.ToString("X8"));
            }
            if (DMICRC != null)
            {
                AddVar(builder, " DMICRC", ((int)DMICRC.Status).ToString() + "|" + DMICRC.Crc.ToString("X8"));
            }
            if (SSCRC != null)
            {
                AddVar(builder, " SSCRC", ((int)SSCRC.Status).ToString() + "|" + SSCRC.Crc.ToString("X8"));
            }
            if (GameCRC != null)
            {
                AddVar(builder, " GameCRC", ((int)GameCRC.Status).ToString() + "|" + GameCRC.Crc.ToString("X8"));
            }
            AddVar(builder, " RAWSS", RAWSS.ToString("X8"));
            AddVar(builder, " RegionCode", RegionCode.ToString("X8"));
            AddVar(builder, " MediaId", MediaId);
            AddVar(builder, " AnyDVDCorruption", AnyDVDCorruption.ToString());
            AddVar(builder, " MinKernel", MinKernel);
            AddVar(builder, " LastCheck", LastCheck.ToString());
            AddVar(builder, " Wave", Wave);
            AddVar(builder, " Size", Size.ToString());
            return(builder.ToString());
        }
コード例 #2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("MetaProfile(");
        bool __first = true;

        if (__isset.createTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreateTime: ");
            CreateTime.ToString(sb);
        }
        if (RegionCode != null && __isset.regionCode)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("RegionCode: ");
            RegionCode.ToString(sb);
        }
        if (Identities != null && __isset.identities)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Identities: ");
            Identities.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
コード例 #3
0
ファイル: FIN_Region.cs プロジェクト: vazeele/MDM
 public override String ToString()
 {
     return(RegionCode.ToString());
 }
コード例 #4
0
ファイル: Profile.cs プロジェクト: zsutrisz/linethrift
    public override string ToString()
    {
        var  sb      = new StringBuilder("Profile(");
        bool __first = true;

        if (Mid != null && __isset.mid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Mid: ");
            Mid.ToString(sb);
        }
        if (Userid != null && __isset.userid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Userid: ");
            Userid.ToString(sb);
        }
        if (Phone != null && __isset.phone)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Phone: ");
            Phone.ToString(sb);
        }
        if (Email != null && __isset.email)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Email: ");
            Email.ToString(sb);
        }
        if (RegionCode != null && __isset.regionCode)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("RegionCode: ");
            RegionCode.ToString(sb);
        }
        if (DisplayName != null && __isset.displayName)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("DisplayName: ");
            DisplayName.ToString(sb);
        }
        if (PhoneticName != null && __isset.phoneticName)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PhoneticName: ");
            PhoneticName.ToString(sb);
        }
        if (PictureStatus != null && __isset.pictureStatus)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PictureStatus: ");
            PictureStatus.ToString(sb);
        }
        if (ThumbnailUrl != null && __isset.thumbnailUrl)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ThumbnailUrl: ");
            ThumbnailUrl.ToString(sb);
        }
        if (StatusMessage != null && __isset.statusMessage)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("StatusMessage: ");
            StatusMessage.ToString(sb);
        }
        if (__isset.allowSearchByUserid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("AllowSearchByUserid: ");
            AllowSearchByUserid.ToString(sb);
        }
        if (__isset.allowSearchByEmail)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("AllowSearchByEmail: ");
            AllowSearchByEmail.ToString(sb);
        }
        if (PicturePath != null && __isset.picturePath)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PicturePath: ");
            PicturePath.ToString(sb);
        }
        if (MusicProfile != null && __isset.musicProfile)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MusicProfile: ");
            MusicProfile.ToString(sb);
        }
        if (VideoProfile != null && __isset.videoProfile)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("VideoProfile: ");
            VideoProfile.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }