corrects arghints for some HTTP commands

This commit is contained in:
Madpeterz 2021-02-16 08:57:01 +00:00
parent 2110987f73
commit ed516f5872
3 changed files with 8 additions and 6 deletions

View file

@ -28,7 +28,7 @@ namespace BetterSecondBot.HttpService
} }
[About("sends a message to localchat")] [About("sends a message to localchat")]
[ArgHints("message","Text", "the message to send")] [ArgHints("message", "URLARG", "the message to send")]
[ReturnHints("array string")] [ReturnHints("array string")]
[Route(HttpVerbs.Post, "/localchatsay/{token}")] [Route(HttpVerbs.Post, "/localchatsay/{token}")]
public object localchatSay(string token, [FormField] string message) public object localchatSay(string token, [FormField] string message)

View file

@ -35,9 +35,9 @@ namespace BetterSecondBot.HttpService
[ReturnHints("Unable to find avatar UUID")] [ReturnHints("Unable to find avatar UUID")]
[ReturnHints("Unable to process global value please use true or false")] [ReturnHints("Unable to process global value please use true or false")]
[ReturnHints("Not an estate manager on region {REGIONNAME}")] [ReturnHints("Not an estate manager on region {REGIONNAME}")]
[ArgHints("avatar", "uuid", "the avatar you wish to ban")] [ArgHints("avatar", "URLARG", "the uuid 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("mode", "URLARG", "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("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}")] [Route(HttpVerbs.Get, "/update-banlist/{avatar}/{mode}/{global}/{token}")]
public Object UpdateBanlist(string avatar, string mode, string global, string token) public Object UpdateBanlist(string avatar, string mode, string global, string token)

View file

@ -23,6 +23,8 @@ namespace BetterSecondBot.HttpService
[ReturnHints("Unknown group")] [ReturnHints("Unknown group")]
[ReturnHints("Invaild group UUID")] [ReturnHints("Invaild group UUID")]
[ReturnHints("Unable to find avatar 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}")] [Route(HttpVerbs.Get, "/ismember/{group}/{avatar}/{token}")]
public object ismember(string group,string avatar,string 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/>")] [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("GroupRoleDetails object")]
[ReturnHints("Group is not currently known")] [ReturnHints("Group is not currently known")]
[ReturnHints("Invaild group UUID")] [ReturnHints("Invaild group UUID")]
[ReturnHints("Updating")] [ReturnHints("Updating")]
[ArgHints("group", "URLARG", "the UUID of the group")]
[Route(HttpVerbs.Get, "/listgrouproles/{group}/{token}")] [Route(HttpVerbs.Get, "/listgrouproles/{group}/{token}")]
public object listgrouproles(string group, string token) public object listgrouproles(string group, string token)
{ {
@ -152,9 +154,9 @@ namespace BetterSecondBot.HttpService
} }
[About("fetchs the groupchat history")] [About("fetchs the groupchat history")]
[ArgHints("group", "URLARG", "UUID of the group")]
[ReturnHints("Group UUID invaild")] [ReturnHints("Group UUID invaild")]
[ReturnHints("Group Chat")] [ReturnHints("Group Chat")]
[ArgHints("group", "URLARG", "the UUID of the group")]
[Route(HttpVerbs.Get, "/getgroupchat/{group}/{token}")] [Route(HttpVerbs.Get, "/getgroupchat/{group}/{token}")]
public object getgroupchat(string group, string token) public object getgroupchat(string group, string token)
{ {