Skip to main content

Search Guild

Searches guild information.

Call Information​

public void Search (string tableCode, SortCondition sortCondition, SortType sortType, int limit, PlayNANOODelegate callback) {}
public void Search (string tableCode, SortCondition sortCondition, SortType sortType, int limit, bool isAutoJoin, PlayNANOODelegate callback) {}

// 길드명 조회
public void SearchName (string tableCode, string name, PlayNANOODelegate callback) {}

Call Details​

ParameterDescriptionType
tableCodeTable codestring
sortConditionSearch condition
PlayNANOO.Guild.SortCondition.RANDOM : Random search
PlayNANOO.Guild.SortCondition.POINT : By points
PlayNANOO.Guild.SortCondition.IN_DATE : By registration date
SortCondition
sortTypeSort condition
PlayNANOO.Guild.SortType.DESC : Descending
PlayNANOO.Guild.SortType.ASC : Ascending
SortType
limitNumber of guilds to searchinteger
isAutoJoinAuto-join availabilityboolean
callbackCommunication resultPlayNANOODelegate

Source Code​

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Awake()
{
plugin = Plugin.GetInstance();

plugin.Guild.Search("tableCode" PlayNANOO.Guild.SortCondition.RANDOM, PlayNANOO.Guild.SortType.DESC, 10, (status, error, jsonString, values) =>
{
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
foreach (Dictionary<string, object> value in (ArrayList)values["Items"])
{
Debug.Log(value["TableCode"]);
Debug.Log(value["Uid"]);
Debug.Log(value["Name"]);
Debug.Log(value["Point"]);
Debug.Log(value["MasterUuid"]);
Debug.Log(value["MasterNickname"]);
Debug.Log(value["Country"]);
Debug.Log(value["MemberCount"]);
Debug.Log(value["MemberLimit"]);
Debug.Log(value["AutoJoin"]);
Debug.Log(value["ExtraData"]);
Debug.Log(value["InDate"]);
}
}
else
{
Debug.Log("Fail");
}
});
}
}

Response​

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Items" : [
{
"TableCode" : "String",
"Uid" : "String",
"Name" : "String",
"Point" : "Integer",
"MasterUuid" : "String",
"MasterNickname" : "String",
"Country" : "String",
"MemberCount" : "Integer",
"MemberLimit" : "Integer",
"AutoJoin" : "String",
"ExtraData" : "String",
"InDate" : "String"
}
]
}

Response Details​

Data KeyDescriptionType
TableCodeTable codestring
UidGuild unique identifier codestring
NameGuild namestring
PointGuild pointsinteger
MasterUuidMaster user identifier IDstring
MasterNicknameMaster nicknamestring
CountryGuild country codestring
MemberCountNumber of membersinteger
MemberLimitMaximum number of members allowedinteger
AutoJoinAuto-join availabilitystring
ExtraDataAdditional datastring
InDateGuild creation datestring