資源簡介
進一步的封裝RestSharp,完成RestSharpUtil幫助類,減少RestRequest的組裝頻率

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
///?
///?封裝的接收REST返回結果
///?現有的同步工程返回值用的是APIResult
///?
///?返回結果中的值類型
public?class?ResponseMessage
{
????/**
?????*?是否成功
?????*/
????public?Boolean?success;
????/**
?????*?反饋數據
?????*/
????public?T?content;
????/**
?????*?反饋信息
?????*/
????public?String?message;
????/**
?????*?響應碼
?????*/
????public?int?code;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????580??2019-03-21?13:24??ResponseMessage.cs
?????文件?????????747??2019-03-21?14:38??RestParam.cs
?????文件????????4452??2019-03-21?14:37??RestSharpApiUtil.cs
- 上一篇:C#實現的SSH源碼 SharpSSH
- 下一篇:C#環境下的Modbus類
評論
共有 條評論