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

Commit

Permalink
Add Promote Room and Room priority
Browse files Browse the repository at this point in the history
  • Loading branch information
RooyeKhat committed Nov 26, 2018
1 parent 338b70d commit 0ffa0b5
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 0 deletions.
27 changes: 27 additions & 0 deletions app/assets/proto/ClientGetPromote.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
syntax = "proto3";
package proto;
import "Request.proto";
import "Response.proto";

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

message ClientGetPromote {
Request request = 1;
}

message ClientGetPromoteResponse {
Response response = 1;

message Promote {
enum Type {
USER = 0;
PUBLIC_ROOM = 1;
}
Type type = 1;

uint64 id = 2;
}

repeated Promote promote = 2;
}
1 change: 1 addition & 0 deletions app/assets/proto/Global.proto
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ message Room {
RoomMute room_mute = 15;
uint64 pin_id = 16;
RoomMessage pinned_message = 17;
uint32 priority = 18;

ChatRoom chat_room_extra = 11;
GroupRoom group_room_extra = 12;
Expand Down
13 changes: 13 additions & 0 deletions docs/guide/v1/error/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3695,6 +3695,19 @@ Internal server error for request [#617](../proto/README.md#action_617)
|------------ |-------- |---------- |
| * | * | * |

### Error 663 - CLIENT_GET_PROMOTE_BAD_PAYLOAD
Bad payload for request [#618](../proto/README.md#action_618)

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

### Error 664 - CLIENT_GET_PROMOTE_INTERNAL_SERVER_ERROR
You are forbidden to do the action for request [#618](../proto/README.md#action_618)

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

# File Errors(7xx)

Expand Down
5 changes: 5 additions & 0 deletions docs/guide/v1/error/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,11 @@
* 661 - [CLIENT_REGISTER_DEVICE_INTERNAL_SERVER_ERROR](README.md#error-661-client_register_device_internal_server_error)
* 662 - [CLIENT_REGISTER_DEVICE_FORBIDDEN](README.md#error-662-client_register_device_forbidden)

---

* 663 - [CLIENT_GET_PROMOTE_BAD_PAYLOAD](README.md#error-663-client_get_promote_bad_payload)
* 664 - [CLIENT_GET_PROMOTE_INTERNAL_SERVER_ERROR](README.md#error-664-client_get_promote_internal_server_error)

# File errors 7xx

* 700 - [FILE_UPLOAD_OPTION_BAD_PAYLOAD](README.md#error-700-file_upload_option_bad_payload)
Expand Down
2 changes: 2 additions & 0 deletions docs/guide/v1/proto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
| <a name="action_30616">30616</a> | [Details](ClientRoomReportResponse.md) | [ClientRoomReportResponse](../../../../app/assets/proto/ClientRoomReport.proto) |
| <a name="action_617">617</a> | [Details](ClientRegisterDevice.md) | [ClientRegisterDevice](../../../../app/assets/proto/ClientRegisterDevice.proto) |
| <a name="action_30617">30617</a> | [Details](ClientRegisterDeviceResponse.md) | [ClientRegisterDeviceResponse](../../../../app/assets/proto/ClientRegisterDevice.proto) |
| <a name="action_618">618</a> | [Details](ClientGetPromote.md) | [ClientGetPromote](../../../../app/assets/proto/ClientGetPromote.proto) |
| <a name="action_30618">30618</a> | [Details](ClientGetPromoteResponse.md) | [ClientGetPromoteResponse](../../../../app/assets/proto/ClientGetPromote.proto) |

# File 7xx , 307xx

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 @@ -161,6 +161,7 @@
* :o: [PinRoom](client/PinRoom.md)
* [RoomReport](client/RoomReport.md)
* [RegisterDevice](client/RegisterDevice.md)
* [GetPromote](client/GetPromote.md)

# File
* [Upload](file/Upload.md)
Expand Down
8 changes: 8 additions & 0 deletions docs/guide/v1/request/client/GetPromote.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Get promotes

# Request
message [#618](../../proto/README.md#action_618)

# Response
message [#30618](../../proto/README.md#action_30618)

0 comments on commit 0ffa0b5

Please sign in to comment.