0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

System.Runtime.Serializationを利用してJsonデータクラスを定義

0
Posted at

自分で作成した一例

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace TestApp.Json
{
    [DataContract]
    public class CreateModel_request
    {
        [DataMember]
        public string SessionID { get; set; }

        [DataMember]
        public int UserID { get; set; }

        [DataMember]
        public VoiceInfo_Object_CreateModel VoiceInfo { get; set; }
    }

    [DataContract]
    public class VoiceInfo_Object_CreateModel {

        [DataMember]
        public string Phrase { get; set; }

        [DataMember]
        public bool CleanRegist { get; set; }

        [DataMember]
        public List<VoiceList_Item> VoiceList { get; set; }
    }

    [DataContract]
    public class VoiceList_Item {

        [DataMember]
        public int VoiceID { get; set; }

        [DataMember]
        public string VoiceData { get; set; }
    }
}
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?