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

Commit

Permalink
Update 69
Browse files Browse the repository at this point in the history
  • Loading branch information
RooyeKhat committed Sep 20, 2017
1 parent 258c8f2 commit 0b5fe20
Show file tree
Hide file tree
Showing 31 changed files with 314 additions and 18 deletions.
2 changes: 2 additions & 0 deletions app/assets/proto/ClientGetRoomHistory.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ message ClientGetRoomHistory {
DOWN = 1;
}
Direction direction = 4;

uint32 limit = 5;
}

message ClientGetRoomHistoryResponse {
Expand Down
4 changes: 3 additions & 1 deletion app/assets/proto/ClientSearchRoomHistory.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ option java_outer_classname = "ProtoClientSearchRoomHistory";
message ClientSearchRoomHistory {
Request request = 1;
uint64 room_id = 2;
uint32 offset = 3;
uint32 offset = 3; //Deprecated

enum Filter {
IMAGE = 0;
Expand All @@ -22,6 +22,8 @@ message ClientSearchRoomHistory {
URL = 6;
}
Filter filter = 4;

uint64 offset_message_id = 5;
}

message ClientSearchRoomHistoryResponse {
Expand Down
1 change: 1 addition & 0 deletions app/assets/proto/ConnectionSecuring.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ message ConnectionSecuringResponse {
uint32 symmetric_key_length = 3;
uint32 heartbeat_interval = 4;
string primary_node_name = 5;
uint32 secondary_chunk_size = 6;
}

message ConnectionSymmetricKey {
Expand Down
17 changes: 17 additions & 0 deletions app/assets/proto/GeoGetComment.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 = "ProtoGeoGetComment";

message GeoGetComment {
Request request = 1;
uint64 user_id = 2;
}

message GeoGetCommentResponse {
Response response = 1;
string comment = 2;
}
22 changes: 22 additions & 0 deletions app/assets/proto/GeoGetConfiguration.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
syntax = "proto3";
package proto;
import "Request.proto";
import "Response.proto";

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

message GeoGetConfiguration {
Request request = 1;
}

message GeoGetConfigurationResponse {
Response response = 1;

message TileServer {
string base_url = 1;
}
repeated TileServer tile_server = 2;

string cache_id = 3;
}
25 changes: 25 additions & 0 deletions app/assets/proto/GeoGetNearbyCoordinate.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
syntax = "proto3";
package proto;
import "Request.proto";
import "Response.proto";

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

message GeoGetNearbyCoordinate {
Request request = 1;
double lat = 2;
double lon = 3;
}

message GeoGetNearbyCoordinateResponse {
Response response = 1;

message Result {
uint64 user_id = 1;
bool has_comment = 2;
double lat = 3;
double lon = 4;
}
repeated Result result = 2;
}
24 changes: 24 additions & 0 deletions app/assets/proto/GeoGetNearbyDistance.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
syntax = "proto3";
package proto;
import "Request.proto";
import "Response.proto";

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

message GeoGetNearbyDistance {
Request request = 1;
double lat = 2;
double lon = 3;
}

message GeoGetNearbyDistanceResponse {
Response response = 1;

message Result {
uint64 user_id = 1;
bool has_comment = 2;
uint32 distance = 3;
}
repeated Result result = 2;
}
16 changes: 16 additions & 0 deletions app/assets/proto/GeoGetRegisterStatus.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
syntax = "proto3";
package proto;
import "Request.proto";
import "Response.proto";

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

message GeoGetRegisterStatus {
Request request = 1;
}

message GeoGetRegisterStatusResponse {
Response response = 1;
bool enable = 2;
}
17 changes: 17 additions & 0 deletions app/assets/proto/GeoRegister.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 = "ProtoGeoRegister";

message GeoRegister {
Request request = 1;
bool enable = 2;
}

message GeoRegisterResponse {
Response response = 1;
bool enable = 2;
}
17 changes: 17 additions & 0 deletions app/assets/proto/GeoUpdateComment.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 = "ProtoGeoUpdateComment";

message GeoUpdateComment {
Request request = 1;
string comment = 2;
}

message GeoUpdateCommentResponse {
Response response = 1;
string comment = 2;
}
17 changes: 17 additions & 0 deletions app/assets/proto/GeoUpdatePosition.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 = "ProtoGeoUpdatePosition";

message GeoUpdatePosition {
Request request = 1;
double lat = 2;
double lon = 3;
}

message GeoUpdatePositionResponse {
Response response = 1;
}
2 changes: 2 additions & 0 deletions app/assets/proto/Global.proto
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ message RoomMessageLog {
MISSED_VOICE_CALL = 10;
MISSED_VIDEO_CALL = 11;
MISSED_SCREEN_SHARE = 12;
MISSED_SECRET_CHAT = 13;
}
Type type = 1;

Expand Down Expand Up @@ -349,6 +350,7 @@ enum PrivacyType {
VOICE_CALLING = 4;
VIDEO_CALLING = 5;
SCREEN_SHARING = 6;
SECRET_CHAT = 7;
}


Expand Down
1 change: 1 addition & 0 deletions app/assets/proto/SignalingGetConfiguration.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ message SignalingGetConfigurationResponse {
bool voice_calling = 3;
bool video_calling = 4;
bool screen_sharing = 5;
bool secret_chat = 6;
}
1 change: 1 addition & 0 deletions app/assets/proto/SignalingLeave.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ message SignalingLeaveResponse {
UNAVAILABLE = 4;
DISCONNECTED = 5;
FINISHED = 6;
TOO_LONG = 7;
}
Type type = 2;
}
1 change: 1 addition & 0 deletions app/assets/proto/SignalingOffer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ message SignalingOffer {
VOICE_CALLING = 0;
VIDEO_CALLING = 1;
SCREEN_SHARING = 2;
SECRET_CHAT = 3;
}
Type type = 3;

Expand Down
1 change: 1 addition & 0 deletions app/assets/proto/UserContactsEdit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ message UserContactsEditResponse {
uint64 phone = 2;
string first_name = 3;
string last_name = 4;
string initials = 5;
}
1 change: 1 addition & 0 deletions app/assets/proto/UserProfileSetNickname.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ message UserProfileSetNickname {
message UserProfileSetNicknameResponse {
Response response = 1;
string nickname = 2;
string initials = 3;
}
7 changes: 0 additions & 7 deletions docs/guide/v1/Protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ Resolve the username
| domain | :white_check_mark: | Username |
| post | :negative_squared_cross_mark: | Room message id |

# new_device
Verify the identity of new device

| Parameters | Required | Description |
|------------ |---------- |------------------ |
| token | :white_check_mark: | Login token |

# add_contact
Add contact (Just fill add contact form and let user to edit the form data)

Expand Down
49 changes: 47 additions & 2 deletions docs/guide/v1/error/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,8 @@
* 808 - [QR_CODE_ADD_ME_BAD_PAYLOAD](README.md#error-808-qr_code_add_me_bad_payload)
* 809 - [QR_CODE_ADD_ME_INTERNAL_SERVER_ERROR](README.md#error-809-qr_code_add_me_internal_server_error)

# Signaling 9xx
# Signaling errors 9xx

* 900 - [SIGNALING_GET_CONFIGURATION_BAD_PAYLOAD](README.md#error-900-signaling_get_configuration_bad_payload)
* 901 - [SIGNALING_GET_CONFIGURATION_INTERNAL_SERVER_ERROR](README.md#error-901-signaling_get_configuration_internal_server_error)

Expand Down Expand Up @@ -926,4 +927,48 @@

* 926 - [SIGNALING_RATE_BAD_PAYLOAD](README.md#error-926-signaling_rate_bad_payload)
* 927 - [SIGNALING_RATE_INTERNAL_SERVER_ERROR](README.md#error-927-signaling_rate_internal_server_error)
* 928 - [SIGNALING_RATE_FORBIDDEN](README.md#error-928-signaling_rate_forbidden)
* 928 - [SIGNALING_RATE_FORBIDDEN](README.md#error-928-signaling_rate_forbidden)

# Geo errors 10xx

* 1000 - [GEO_GET_REGISTER_STATUS_BAD_PAYLOAD](README.md#error-1000-geo_get_register_status_bad_payload)
* 1001 - [GEO_GET_REGISTER_STATUS_INTERNAL_SERVER_ERROR](README.md#error-1001-geo_get_register_status_internal_server_error)

---

* 1002 - [GEO_REGISTER_BAD_PAYLOAD](README.md#error-1002-geo_register_bad_payload)
* 1003 - [GEO_REGISTER_INTERNAL_SERVER_ERROR](README.md#error-1003-geo_register_internal_server_error)

---

* 1004 - [GEO_UPDATE_POSITION_BAD_PAYLOAD](README.md#error-1004-geo_update_position_bad_payload)
* 1005 - [GEO_UPDATE_POSITION_INTERNAL_SERVER_ERROR](README.md#error-1005-geo_update_position_internal_server_error)
* 1006 - [GEO_UPDATE_POSITION_FORBIDDEN](README.md#error-1006-geo_update_position_forbidden)

---

* 1007 - [GEO_GET_COMMENT_BAD_PAYLOAD](README.md#error-1007-geo_get_comment_bad_payload)
* 1008 - [GEO_GET_COMMENT_INTERNAL_SERVER_ERROR](README.md#error-1008-geo_get_comment_internal_server_error)
* 1009 - [GEO_GET_COMMENT_FORBIDDEN](README.md#error-1009-geo_get_comment_forbidden)

---

* 1010 - [GEO_UPDATE_COMMENT_BAD_PAYLOAD](README.md#error-1010-geo_update_comment_bad_payload)
* 1011 - [GEO_UPDATE_COMMENT_INTERNAL_SERVER_ERROR](README.md#error-1011-geo_update_comment_internal_server_error)
* 1012 - [GEO_UPDATE_COMMENT_FORBIDDEN](README.md#error-1012-geo_update_comment_forbidden)

---

* 1013 - [GEO_GET_NEARBY_DISTANCE_BAD_PAYLOAD](README.md#error-1013-geo_get_nearby_distance_bad_payload)
* 1014 - [GEO_GET_NEARBY_DISTANCE_INTERNAL_SERVER_ERROR](README.md#error-1014-geo_get_nearby_distance_internal_server_error)
* 1015 - [GEO_GET_NEARBY_DISTANCE_FORBIDDEN](README.md#error-1015-geo_get_nearby_distance_forbidden)

---

* 1016 - [GEO_GET_NEARBY_COORDINATE_BAD_PAYLOAD](README.md#error-1016-geo_get_nearby_coordinate_bad_payload)
* 1017 - [GEO_GET_NEARBY_COORDINATE_INTERNAL_SERVER_ERROR](README.md#error-1017-geo_get_nearby_coordinate_internal_server_error)
* 1018 - [GEO_GET_NEARBY_COORDINATE_FORBIDDEN](README.md#error-1018-geo_get_nearby_coordinate_forbidden)
---

* 1019 - [GEO_GET_CONFIGURATION_BAD_PAYLOAD](README.md#error-1019-geo_get_configuration_bad_payload)
* 1020 - [GEO_GET_CONFIGURATION_INTERNAL_SERVER_ERROR](README.md#error-1020-geo_get_configuration_internal_server_error)
21 changes: 21 additions & 0 deletions docs/guide/v1/proto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,27 @@
| <a name="action_909">909</a> | [Details](SignalingRate.md) | [SignalingRate](../../../../app/assets/proto/SignalingRate.proto) |
| <a name="action_30909">30909</a> | [Details](SignalingRateResponse.md) | [SignalingRateResponse](../../../../app/assets/proto/SignalingRate.proto) |

# Geo 10xx , 310xx

| Id |Details | Proto file |
|---- |----------------------------------- |------------------------------------------------------------------- |
| <a name="action_1000">1000</a> | [Details](GeoGetRegisterStatus.md) | [GeoGetRegisterStatus](../../../../app/assets/proto/GeoGetRegisterStatus.proto) |
| <a name="action_31000">31000</a> | [Details](GeoGetRegisterStatusResponse.md) | [GeoGetRegisterStatusResponse](../../../../app/assets/proto/GeoGetRegisterStatus.proto) |
| <a name="action_1001">1001</a> | [Details](GeoRegister.md) | [GeoRegister](../../../../app/assets/proto/GeoRegister.proto) |
| <a name="action_31001">31001</a> | [Details](GeoRegisterResponse.md) | [GeoRegisterResponse](../../../../app/assets/proto/GeoRegister.proto) |
| <a name="action_1002">1002</a> | [Details](GeoUpdatePosition.md) | [GeoUpdatePosition](../../../../app/assets/proto/GeoUpdatePosition.proto) |
| <a name="action_31002">31002</a> | [Details](GeoUpdatePositionResponse.md) | [GeoUpdatePositionResponse](../../../../app/assets/proto/GeoUpdatePosition.proto) |
| <a name="action_1003">1003</a> | [Details](GeoGetComment.md) | [GeoGetComment](../../../../app/assets/proto/GeoGetComment.proto) |
| <a name="action_31003">31003</a> | [Details](GeoGetCommentResponse.md) | [GeoGetCommentResponse](../../../../app/assets/proto/GeoGetComment.proto) |
| <a name="action_1004">1004</a> | [Details](GeoUpdateComment.md) | [GeoUpdateComment](../../../../app/assets/proto/GeoUpdateComment.proto) |
| <a name="action_31004">31004</a> | [Details](GeoUpdateCommentResponse.md) | [GeoUpdateCommentResponse](../../../../app/assets/proto/GeoUpdateComment.proto) |
| <a name="action_1005">1005</a> | [Details](GeoGetNearbyDistance.md) | [GeoGetNearbyDistance](../../../../app/assets/proto/GeoGetNearbyDistance.proto) |
| <a name="action_31005">31005</a> | [Details](GeoGetNearbyDistanceResponse.md) | [GeoGetNearbyDistanceResponse](../../../../app/assets/proto/GeoGetNearbyDistance.proto) |
| <a name="action_1006">1006</a> | [Details](GeoGetNearbyCoordinate.md) | [GeoGetNearbyCoordinate](../../../../app/assets/proto/GeoGetNearbyCoordinate.proto) |
| <a name="action_31006">31006</a> | [Details](GeoGetNearbyCoordinateResponse.md) | [GeoGetNearbyCoordinateResponse](../../../../app/assets/proto/GeoGetNearbyCoordinate.proto) |
| <a name="action_1007">1007</a> | [Details](GeoGetConfiguration.md) | [GeoGetConfiguration](../../../../app/assets/proto/GeoGetConfiguration.proto) |
| <a name="action_31007">31007</a> | [Details](GeoGetConfigurationResponse.md) | [GeoGetConfigurationResponse](../../../../app/assets/proto/GeoGetConfiguration.proto) |

# Push 600xx

| Id |Details | Proto file |
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/v1/push/RateSignaling.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Rating for the session is requested

# Response
message [#3060003](../../proto/README.md#action_3060003)
message [#60003](../../proto/README.md#action_60003)

12 changes: 11 additions & 1 deletion docs/guide/v1/request/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,14 @@
* :o: [SessionHold](signaling/SessionHold.md)
* [GetLog](signaling/GetLog.md)
* :o: [ClearLog](signaling/ClearLog.md)
* [Rate](signaling/Rate.md)
* [Rate](signaling/Rate.md)

# Geo
* [GetConfiguration](geo/GetConfiguration.md)
* [GetRegisterStatus](geo/GetRegisterStatus.md)
* :o: [Register](geo/Register.md)
* [UpdatePosition](geo/UpdatePosition.md)
* [GetComment](geo/GetComment.md)
* :o: [UpdateComment](geo/UpdateComment.md)
* [GetNearbyDistance](geo/GetNearbyDistance.md)
* [GetNearbyCoordinate](geo/GetNearbyCoordinate.md)
8 changes: 8 additions & 0 deletions docs/guide/v1/request/geo/GetComment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Get geo comment of a specific user

# Request
message [#1003](../../proto/README.md#action_1003)

# Response
message [#31003](../../proto/README.md#action_31003)

Loading

0 comments on commit 0b5fe20

Please sign in to comment.