本文整理汇总了C#中Newtonsoft.Json.Linq.JObject.ToSimpleString方法的典型用法代码示例。如果您正苦于以下问题:C# JObject.ToSimpleString方法的具体用法?C# JObject.ToSimpleString怎么用?C# JObject.ToSimpleString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Newtonsoft.Json.Linq.JObject
的用法示例。
在下文中一共展示了JObject.ToSimpleString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BuildRequest
public override HttpRequestItem BuildRequest()
{
var req = HttpRequestItem.CreateFormRequest(ApiUrls.GetGroupNameList);
var json = new JObject
{
{"vfwebqq", Session.Vfwebqq},
{"hash", QQEncryptor.Hash(Session.User.Uin, Session.Ptwebqq)}
};
req.AddQueryValue("r", json.ToSimpleString());
req.Referrer = ApiUrls.Referrer;
return req;
}
示例2: ModifyRequest
protected override void ModifyRequest(HttpRequestItem req)
{
req.Method = HttpMethodType.Post;
var json = new JObject
{
{"clientid", Session.ClientId},
{"psessionid", Session.SessionId},
{"key", ""},
{"ptwebqq", Session.Ptwebqq}
};
req.AddQueryValue("r", json.ToSimpleString());
req.Referrer = "https://d1.web2.qq.com/cfproxy.html?v=20151105001&callback=1";
}
示例3: ModifyRequest
protected override void ModifyRequest(HttpRequestItem req)
{
req.Method = HttpMethodType.Post;
var json = new JObject
{
{"status", QQStatusType.Online.ToLowerString()},
{"ptwebqq", Session.Ptwebqq},
{"clientid", Session.ClientId},
{"psessionid", ""}
};
req.AddQueryValue("r", json.ToSimpleString());
req.Referrer = ApiUrls.Referrer;
}