26 lines
850 B
C#
26 lines
850 B
C#
using System.Diagnostics;
|
|
using Newtonsoft.Json;
|
|
using RestSharp;
|
|
using RustTools.muqing;
|
|
|
|
namespace RustTools.ApiFox;
|
|
|
|
|
|
#pragma warning disable CS8981 // 该类型名称仅包含小写 ascii 字符。此类名称可能会成为该语言的保留值。
|
|
#pragma warning disable IDE1006 // 命名样式
|
|
public class community
|
|
{
|
|
public static async Task<string> getList(string account,bool isFollowMode,int limit=0)
|
|
{
|
|
//Debug.WriteLine("account:" + account);
|
|
Debug.WriteLine("isFollowMode:" + isFollowMode.ToString());
|
|
return await wl.postAsync("/php/community.php?action=getList", new string[][]{
|
|
new string[] { "account", account },
|
|
new string[] { "isFollowMode",isFollowMode.ToString().ToLower() },
|
|
new string[] { "limit", limit==0?"0" : limit.ToString() }
|
|
});
|
|
}
|
|
|
|
|
|
}
|