Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Added Bot Option
Browse files Browse the repository at this point in the history
  • Loading branch information
RooyeKhat committed Nov 5, 2018
1 parent 04afd6f commit 338b70d
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/assets/proto/Global.proto
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ message RegisteredUser {
string cache_id = 15;
string bio = 16;
bool verified = 17;
bool bot = 18;
}

enum ClientAction {
Expand Down
17 changes: 17 additions & 0 deletions app/assets/proto/UserSetBot.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
syntax = "proto3";
package proto;
import "Request.proto";
import "Response.proto";

option java_package = "net.iGap.proto";
option java_outer_classname = "ProtoUserSetBot";

message UserSetBot {
Request request = 1;
bool status = 2;
}

message UserSetBotResponse {
Response response = 1;
bool status = 2;
}
16 changes: 16 additions & 0 deletions docs/guide/v1/error/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,22 @@ You are forbidden to do the action for request [#149](../proto/README.md#action_
| * | * | * |


### Error 10173 - USER_SET_BOT_BAD_PAYLOAD
Bad payload for request [#150](../proto/README.md#action_150)

| Minor Code | Detail | Reaction |
|------------ |------------------------ |---------- |
| 1 | status is invalid | * |


### Error 10174 - USER_SET_BOT_INTERNAL_SERVER_ERROR
Internal server error for request [#150](../proto/README.md#action_150)

| Minor Code | Detail | Reaction |
|------------ |-------- |---------- |
| * | * | * |


# Chat Errors(2xx)
### Error 200 - CHAT_GET_ROOM_BAD_PAYLOAD
Bad payload for request [#200](../proto/README.md#action_200)
Expand Down
7 changes: 6 additions & 1 deletion docs/guide/v1/error/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@
* 10167 - [USER_REPORT_REPORTED_BEFORE](README.md#error-10167-user_report_reported_before)
* 10168 - [USER_REPORT_FORBIDDEN](README.md#error-10168-user_report_forbidden)

---

* 10173 - [USER_SET_BOT_BAD_PAYLOAD](README.md#error-10173-user_set_bot_bad_payload)
* 10174 - [USER_SET_BOT_INTERNAL_SERVER_ERROR](README.md#error-10174-user_set_bot_internal_server_error)

# Chat room errors 2xx

* 200 - [CHAT_GET_ROOM_BAD_PAYLOAD](README.md#error-200-chat_get_room_bad_payload)
Expand Down Expand Up @@ -1093,4 +1098,4 @@
* 9204 - [BILL_INQUIRY_TELECOM_BAD_PAYLOAD](README.md#error-9204-bill_inquiry_telecom_bad_payload)
* 9205 - [BILL_INQUIRY_TELECOM_INTERNAL_SERVER_ERROR](README.md#error-9205-bill_inquiry_telecom_internal_server_error)
* 9206 - [BILL_INQUIRY_TELECOM_BAD_GATEWAY](README.md#error-9206-bill_inquiry_telecom_bad_gateway)
* 9207 - [BILL_INQUIRY_TELECOM_FORBIDDEN](README.md#error-9207-bill_inquiry_telecom_forbidden)
* 9207 - [BILL_INQUIRY_TELECOM_FORBIDDEN](README.md#error-9207-bill_inquiry_telecom_forbidden)
2 changes: 2 additions & 0 deletions docs/guide/v1/proto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@
| <a name="action_30148">30148</a> | [Details](UserProfileGetBioResponse.md) | [UserProfileGetBioResponse](../../../../app/assets/proto/UserProfileGetBio.proto) |
| <a name="action_149">149</a> | [Details](UserReport.md) | [UserReport](../../../../app/assets/proto/UserReport.proto) |
| <a name="action_30149">30149</a> | [Details](UserReportResponse.md) | [UserReportResponse](../../../../app/assets/proto/UserReport.proto) |
| <a name="action_150">150</a> | [Details](UserSetBot.md) | [UserSetBot](../../../../app/assets/proto/UserSetBot.proto) |
| <a name="action_30150">30150</a> | [Details](UserSetBotResponse.md) | [UserSetBotResponse](../../../../app/assets/proto/UserSetBot.proto) |

# Chat 2xx , 302xx

Expand Down
1 change: 1 addition & 0 deletions docs/guide/v1/request/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* :o: [SetBio](user/profile/SetBio.md)
* [GetBio](user/profile/GetBio.md)
* [Report](user/Report.md)
* :o: [SetBot](user/SetBot.md)
* Contacts
* [Import](user/contacts/Import.md)
* :o: [GetList](user/contacts/GetList.md)
Expand Down
8 changes: 8 additions & 0 deletions docs/guide/v1/request/user/SetBot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Set user as a bot

# Request
message [#150](../../proto/README.md#action_150)

# Response
message [#30150](../../proto/README.md#action_30150)

0 comments on commit 338b70d

Please sign in to comment.