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

Commit

Permalink
Update 74
Browse files Browse the repository at this point in the history
  • Loading branch information
RooyeKhat committed Oct 17, 2017
1 parent 0b5fe20 commit 4c483a5
Show file tree
Hide file tree
Showing 24 changed files with 4,298 additions and 535 deletions.
1 change: 1 addition & 0 deletions app/assets/proto/ChatDeleteMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ message ChatDeleteMessage {
Request request = 1;
uint64 room_id = 2;
uint64 message_id = 3;
bool both = 4;
}

message ChatDeleteMessageResponse {
Expand Down
8 changes: 7 additions & 1 deletion app/assets/proto/ClientCondition.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ message ClientCondition {
uint64 message_version = 3;
uint64 status_version = 4;
uint64 delete_version = 5;
repeated uint64 offline_deleted = 6;
repeated uint64 offline_deleted_deprecated = 6; //DEPRECATED

message OfflineEdited {
uint64 message_id = 1;
Expand All @@ -35,6 +35,12 @@ message ClientCondition {
OfflineMute offline_mute = 12;

repeated uint64 offline_listened = 13;

message OfflineDeleted {
uint64 message_id = 1;
bool both = 4;
}
repeated OfflineDeleted offline_deleted = 14;
}
repeated Room rooms = 2;
}
Expand Down
20 changes: 20 additions & 0 deletions app/assets/proto/ClientMuteRoom.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
syntax = "proto3";
package proto;
import "Request.proto";
import "Response.proto";
import "Global.proto";

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

message ClientMuteRoom {
Request request = 1;
uint64 room_id = 2;
RoomMute room_mute = 3;
}

message ClientMuteRoomResponse {
Response response = 1;
uint64 room_id = 2;
RoomMute room_mute = 3;
}
19 changes: 19 additions & 0 deletions app/assets/proto/ClientPinRoom.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
syntax = "proto3";
package proto;
import "Request.proto";
import "Response.proto";

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

message ClientPinRoom {
Request request = 1;
uint64 room_id = 2;
bool pin = 3;
}

message ClientPinRoomResponse {
Response response = 1;
uint64 room_id = 2;
uint64 pin_id = 3;
}
28 changes: 28 additions & 0 deletions app/assets/proto/ClientRoomReport.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
syntax = "proto3";
package proto;
import "Request.proto";
import "Response.proto";

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

message ClientRoomReport {
Request request = 1;
uint64 room_id = 2;
uint64 message_id = 3;

enum Reason {
OTHER = 0;
SPAM = 1;
PORNOGRAPHY = 2;
VIOLENCE = 3;
ABUSE = 4;
}
Reason reason = 4;

string description = 5;
}

message ClientRoomReportResponse {
Response response = 1;
}
11 changes: 11 additions & 0 deletions app/assets/proto/Global.proto
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ message RegisteredUser {
bool mutual = 13;
bool deleted = 14;
string cache_id = 15;
string bio = 16;
}

enum ClientAction {
Expand Down Expand Up @@ -223,6 +224,11 @@ message RoomDraft {
uint64 reply_to = 2;
}

enum RoomMute {
UNMUTE = 0;
MUTE = 1;
}

message Room {
uint64 id = 1;
enum Type {
Expand All @@ -240,6 +246,8 @@ message Room {
bool is_participant = 9;
RoomDraft draft = 10;
RoomMessage first_unread_message = 14;
RoomMute room_mute = 15;
uint64 pin_id = 16;

ChatRoom chat_room_extra = 11;
GroupRoom group_room_extra = 12;
Expand Down Expand Up @@ -326,6 +334,8 @@ message Thumbnail {
int32 width = 2;
int32 height = 3;
string cache_id = 4;
string name = 5;
string mime = 6;
}

message File {
Expand All @@ -339,6 +349,7 @@ message File {
int32 height = 8;
double duration = 9;
string cache_id = 10;
string mime = 11;
}


Expand Down
1 change: 1 addition & 0 deletions app/assets/proto/UserContactsGetBlockedList.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ message UserContactsGetBlockedListResponse {

message User {
uint64 user_id = 1;
string cache_id = 2;
}
repeated User user = 2;
}
1 change: 1 addition & 0 deletions app/assets/proto/UserLogin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ message UserLoginResponse {
bool deprecated_client = 2;
string secondary_node_name = 3;
bool update_available = 4;
uint32 chat_delete_message_for_both_period = 5;
}
16 changes: 16 additions & 0 deletions app/assets/proto/UserProfileGetBio.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 = "ProtoUserProfileGetBio";

message UserProfileGetBio {
Request request = 1;
}

message UserProfileGetBioResponse {
Response response = 1;
string bio = 2;
}
17 changes: 17 additions & 0 deletions app/assets/proto/UserProfileSetBio.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 = "ProtoUserProfileBio";

message UserProfileSetBio {
Request request = 1;
string bio = 2;
}

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

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

message UserReport {
Request request = 1;
uint64 user_id = 2;

enum Reason {
OTHER = 0;
SPAM = 1;
ABUSE = 2;
FAKE_ACCOUNT = 3;
}
Reason reason = 3;

string description = 4;
}

message UserReportResponse {
Response response = 1;
}
Loading

0 comments on commit 4c483a5

Please sign in to comment.