/// <summary> /// 生成的消息原始结构(未解析) /// </summary> /// <returns></returns> public static MSG1 GetMSG1Model() { string strContent = "JSON内容" + DateTime.Now.ToString("yyyY-MM-dd HH:mm:ss"); var model = new MSG1 { //SequenceID = 1, Content = strContent, iLength = strContent.Length, }; return(model); }
/// <summary> /// 生成的消息原始结构(未解析) /// </summary> /// <returns></returns> public static string GetMSG1() { string strContent = "JSON内容" + DateTime.Now.ToString("yyyY-MM-dd HH:mm:ss"); var model = new MSG1 { //SequenceID = 1, Content = strContent, iLength = strContent.Length, }; return(JsonHelper.DataContractJsonSerialize <MSG1>(model)); }