zhaojs
2023-09-15 fc13938ff90213060532d99a600dea4a84456885
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Text;
 
namespace SmsSendTool
{
  public  class SmsMsgEntity
    {
        private string mobile = string.Empty;
        /// <summary>
        /// 手机号码
        /// </summary>
        public string Mobile
        {
            get { return mobile; }
            set { mobile = value; }
        }
 
 
        private string content = string.Empty;
        /// <summary>
        /// 短信内容
        /// </summary>
        public string Content
        {
            get { return content; }
            set { content = value; }
        }
 
        private string appendid = string.Empty;
        /// <summary>
        /// 扩展号
        /// </summary>
        public string Appendid
        {
            get { return appendid; }
            set { appendid = value; }
        }
 
 
        public SmsMsgEntity(string json)
        {
            try
            {
                JObject msg = (JObject)JsonConvert.DeserializeObject(json.Replace(@"\", "/"));
                this.Mobile = msg["mobile"].ToString();
                this.Content = msg["content"].ToString();
                this.Appendid = msg["appendid"].ToString();
            }
            catch (Exception ex)
            {
 
            }
 
        }
    }
}