using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HuizhongLibrary.Weixin { public class WeixinDepartMent { public string name { get; set; } public int parentid { get; set; } public int order { get; set; } public int id { get; set; } public string ToJsonString() { StringBuilder sb = new StringBuilder(); sb.Append("{"); sb.Append("\"name\":\"" + this.name + "\","); sb.Append("\"parentid\":" + this.parentid +","); sb.Append("\"order\":" + this.order + ","); sb.Append("\"id\":" + this.id); sb.Append("}"); return sb.ToString(); } } }