corrects arghints for some HTTP commands
This commit is contained in:
parent
2110987f73
commit
ed516f5872
3 changed files with 8 additions and 6 deletions
|
|
@ -28,7 +28,7 @@ namespace BetterSecondBot.HttpService
|
|||
}
|
||||
|
||||
[About("sends a message to localchat")]
|
||||
[ArgHints("message","Text", "the message to send")]
|
||||
[ArgHints("message", "URLARG", "the message to send")]
|
||||
[ReturnHints("array string")]
|
||||
[Route(HttpVerbs.Post, "/localchatsay/{token}")]
|
||||
public object localchatSay(string token, [FormField] string message)
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@ namespace BetterSecondBot.HttpService
|
|||
[ReturnHints("Unable to find avatar UUID")]
|
||||
[ReturnHints("Unable to process global value please use true or false")]
|
||||
[ReturnHints("Not an estate manager on region {REGIONNAME}")]
|
||||
[ArgHints("avatar", "uuid", "the avatar you wish to ban")]
|
||||
[ArgHints("mode", "add|remove", "What action would you like to take<br/>Defaults to remove if not given \"add\"")]
|
||||
[ArgHints("global", "true|false", "if true this the ban/unban will be applyed to all estates the bot has access to")]
|
||||
[ArgHints("avatar", "URLARG", "the uuid avatar you wish to ban")]
|
||||
[ArgHints("mode", "URLARG", "What action would you like to take<br/>Defaults to remove if not given \"add\"")]
|
||||
[ArgHints("global", "URLARG", "if true this the ban/unban will be applyed to all estates the bot has access to")]
|
||||
[Route(HttpVerbs.Get, "/update-banlist/{avatar}/{mode}/{global}/{token}")]
|
||||
|
||||
public Object UpdateBanlist(string avatar, string mode, string global, string token)
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ namespace BetterSecondBot.HttpService
|
|||
[ReturnHints("Unknown group")]
|
||||
[ReturnHints("Invaild group UUID")]
|
||||
[ReturnHints("Unable to find avatar UUID")]
|
||||
[ArgHints("group", "URLARG", "the UUID of the group")]
|
||||
[ArgHints("avatar", "URLARG", "the UUID of the avatar you wish to check with")]
|
||||
[Route(HttpVerbs.Get, "/ismember/{group}/{avatar}/{token}")]
|
||||
public object ismember(string group,string avatar,string token)
|
||||
{
|
||||
|
|
@ -75,11 +77,11 @@ namespace BetterSecondBot.HttpService
|
|||
}
|
||||
|
||||
[About("Requests the roles for the selected group<br/>Replys with GroupRoleDetails object formated as follows <ul><li>UpdateUnderway (Bool)</li><li>RoleDataAge (Int) [default -1]</li><li>Roles (KeyPair array of UUID=Name)</li></ul><br/>")]
|
||||
[ArgHints("group", "URLARG", "UUID of the group")]
|
||||
[ReturnHints("GroupRoleDetails object")]
|
||||
[ReturnHints("Group is not currently known")]
|
||||
[ReturnHints("Invaild group UUID")]
|
||||
[ReturnHints("Updating")]
|
||||
[ArgHints("group", "URLARG", "the UUID of the group")]
|
||||
[Route(HttpVerbs.Get, "/listgrouproles/{group}/{token}")]
|
||||
public object listgrouproles(string group, string token)
|
||||
{
|
||||
|
|
@ -152,9 +154,9 @@ namespace BetterSecondBot.HttpService
|
|||
}
|
||||
|
||||
[About("fetchs the groupchat history")]
|
||||
[ArgHints("group", "URLARG", "UUID of the group")]
|
||||
[ReturnHints("Group UUID invaild")]
|
||||
[ReturnHints("Group Chat")]
|
||||
[ArgHints("group", "URLARG", "the UUID of the group")]
|
||||
[Route(HttpVerbs.Get, "/getgroupchat/{group}/{token}")]
|
||||
public object getgroupchat(string group, string token)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue