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

Commit

Permalink
Update 93
Browse files Browse the repository at this point in the history
  • Loading branch information
RooyeKhat committed Sep 15, 2018
1 parent 4c483a5 commit 04afd6f
Show file tree
Hide file tree
Showing 40 changed files with 1,100 additions and 65 deletions.
29 changes: 29 additions & 0 deletions app/assets/proto/BillInquiryMci.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
syntax = "proto3";
package proto;
import "Request.proto";
import "Response.proto";

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

message BillInquiryMci {
Request request = 1;
uint64 mobile_number = 2;
}

message BillInquiryMciResponse {
Response response = 1;
uint32 status = 2;
string message = 3;

message BillInfo {
uint32 status = 1;
uint64 bill_id = 2;
uint64 pay_id = 3;
uint64 amount = 4;
string message = 5;
}

BillInfo mid_term = 4;
BillInfo last_term = 5;
}
28 changes: 28 additions & 0 deletions app/assets/proto/BillInquiryTelecom.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 = "ProtoBillInquiryTelecom";

message BillInquiryTelecom {
Request request = 1;
uint32 province_code = 2;
uint64 telephone_number = 3;
}

message BillInquiryTelecomResponse {
Response response = 1;
uint32 status = 2;
string message = 3;

message BillInfo {
uint64 bill_id = 1;
uint64 pay_id = 2;
uint64 amount = 3;
}

BillInfo mid_term = 4;
BillInfo last_term = 5;
}
20 changes: 20 additions & 0 deletions app/assets/proto/ChannelPinMessage.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 = "ProtoChannelPinMessage";

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

message ChannelPinMessageResponse {
Response response = 1;
uint64 room_id = 2;
RoomMessage pinned_message = 3;
}
1 change: 1 addition & 0 deletions app/assets/proto/ChannelSendMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ message ChannelSendMessage {
RoomMessageContact contact = 7;
uint64 reply_to = 8;
RoomMessageForwardFrom forward_from = 9;
uint64 random_id = 10;
}

message ChannelSendMessageResponse {
Expand Down
19 changes: 19 additions & 0 deletions app/assets/proto/ChannelUpdateReactionStatus.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 = "ProtoChannelUpdateReactionStatus";

message ChannelUpdateReactionStatus {
Request request = 1;
uint64 room_id = 2;
bool reaction_status = 3;
}

message ChannelUpdateReactionStatusResponse {
Response response = 1;
uint64 room_id = 2;
bool reaction_status = 3;
}
1 change: 1 addition & 0 deletions app/assets/proto/ChatSendMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ message ChatSendMessage {
RoomMessageContact contact = 7;
uint64 reply_to = 8;
RoomMessageForwardFrom forward_from = 9;
uint64 random_id = 10;
}

message ChatSendMessageResponse {
Expand Down
24 changes: 24 additions & 0 deletions app/assets/proto/ClientRegisterDevice.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 = "ProtoClientRegisterDevice";

message ClientRegisterDevice {
Request request = 1;
string token = 2;

enum Type {
GENERIC = 0;
ANDROID = 1;
IOS = 2;
WEB = 3;
}
Type type = 3;
}

message ClientRegisterDeviceResponse {
Response response = 1;
}
27 changes: 27 additions & 0 deletions app/assets/proto/Global.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ enum RoomMessageType {
LOCATION = 11;
LOG = 12;
CONTACT = 13;
WALLET = 15;
}

enum RoomMessageStatus {
Expand Down Expand Up @@ -85,6 +86,7 @@ message RoomMessageLog {
MISSED_VIDEO_CALL = 11;
MISSED_SCREEN_SHARE = 12;
MISSED_SECRET_CHAT = 13;
PINNED_MESSAGE = 14;
}
Type type = 1;

Expand All @@ -108,6 +110,24 @@ message RoomMessageContact {
repeated string email = 5;
}

message RoomMessageWallet {
enum Type {
MONEY_TRANSFER = 0;
}
Type type = 1;

message MoneyTransfer {
uint64 from_user_id = 1;
uint64 to_user_id = 2;
uint64 amount = 3;
int64 trace_number = 4;
int64 invoice_number = 5;
uint32 pay_time = 6;
string description = 7;
}
MoneyTransfer money_transfer = 2;
}

message RoomMessageForwardFrom {
uint64 room_id = 1;
uint64 message_id = 2;
Expand Down Expand Up @@ -140,6 +160,7 @@ message RegisteredUser {
bool deleted = 14;
string cache_id = 15;
string bio = 16;
bool verified = 17;
}

enum ClientAction {
Expand Down Expand Up @@ -193,6 +214,7 @@ message RoomMessage {
RoomMessageLocation location = 9;
RoomMessageLog log = 10;
RoomMessageContact contact = 11;
RoomMessageWallet wallet = 22;
bool edited = 12;
uint32 create_time = 13;
uint32 update_time = 14;
Expand All @@ -202,6 +224,7 @@ message RoomMessage {
RoomMessage reply_to = 17;

uint64 previous_message_id = 18;
uint64 random_id = 21;

enum ExtraType {
NO_EXTRA = 0;
Expand Down Expand Up @@ -248,6 +271,7 @@ message Room {
RoomMessage first_unread_message = 14;
RoomMute room_mute = 15;
uint64 pin_id = 16;
RoomMessage pinned_message = 17;

ChatRoom chat_room_extra = 11;
GroupRoom group_room_extra = 12;
Expand Down Expand Up @@ -327,6 +351,8 @@ message ChannelRoom {

bool signature = 10;
uint64 seen_id = 11;
bool verified = 12;
bool reaction_status = 13;
}

message Thumbnail {
Expand All @@ -350,6 +376,7 @@ message File {
double duration = 9;
string cache_id = 10;
string mime = 11;
string public_url = 12;
}


Expand Down
20 changes: 20 additions & 0 deletions app/assets/proto/GroupPinMessage.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 = "ProtoGroupPinMessage";

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

message GroupPinMessageResponse {
Response response = 1;
uint64 room_id = 2;
RoomMessage pinned_message = 3;
}
1 change: 1 addition & 0 deletions app/assets/proto/GroupSendMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ message GroupSendMessage {
RoomMessageContact contact = 7;
uint64 reply_to = 8;
RoomMessageForwardFrom forward_from = 9;
uint64 random_id = 10;
}

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

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

message MplGetBillToken {
Request request = 1;
uint64 bill_id = 2;
uint64 pay_id = 3;
}

message MplGetBillTokenResponse {
Response response = 1;
uint32 status = 2;
string token = 3;
uint32 expire_time = 4;
string message = 5;
}
31 changes: 31 additions & 0 deletions app/assets/proto/MplGetTopupToken.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
syntax = "proto3";
package proto;
import "Request.proto";
import "Response.proto";

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

message MplGetTopupToken {
Request request = 1;
uint64 charge_mobile_number = 2;
uint64 amount = 3;

enum Type {
IRANCELL_PREPAID = 0;
IRANCELL_WOW = 1;
IRANCELL_WIMAX = 2;
IRANCELL_POSTPAID = 3;
MCI = 4;
RIGHTEL = 5;
}
Type type = 4;
}

message MplGetTopupTokenResponse {
Response response = 1;
uint32 status = 2;
string token = 3;
uint32 expire_time = 4;
string message = 5;
}
11 changes: 11 additions & 0 deletions app/assets/proto/PushWalletPaymentVerified.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
syntax = "proto3";
package proto;
import "Response.proto";

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

message PushWalletPaymentVerifiedResponse {
Response response = 1;
string token = 2;
}
3 changes: 3 additions & 0 deletions app/assets/proto/UserLogin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ message UserLoginResponse {
string secondary_node_name = 3;
bool update_available = 4;
uint32 chat_delete_message_for_both_period = 5;
bool wallet_active = 6;
bool mpl_active = 7;
bool wallet_agreement_accepted = 8;
}
9 changes: 9 additions & 0 deletions app/assets/proto/UserRegister.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ message UserRegister {
Request request = 1;
uint64 phone_number = 2;
string country_code = 3;

enum PreferenceMethod {
VERIFY_CODE_AUTO = 0;
VERIFY_CODE_SMS = 1;
VERIFY_CODE_CALL = 2;
}
PreferenceMethod preference_method = 4;
}

message UserRegisterResponse {
Expand All @@ -22,10 +29,12 @@ message UserRegisterResponse {
VERIFY_CODE_SMS = 0;
VERIFY_CODE_SOCKET = 1;
VERIFY_CODE_SMS_SOCKET = 2;
VERIFY_CODE_CALL = 3;
}
Method method = 5;
uint32 resend_delay = 6;
repeated uint64 sms_number = 7;
string verify_code_regex = 8;
uint32 verify_code_digit_count = 9;
bool call_method_supported = 10;
}
23 changes: 23 additions & 0 deletions app/assets/proto/WalletGetAccessToken.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
syntax = "proto3";
package proto;
import "Request.proto";
import "Response.proto";

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

message WalletGetAccessToken {
Request request = 1;
}

message WalletGetAccessTokenResponse {
Response response = 1;

enum TokenType {
BEARER = 0;
}
TokenType token_type = 2;

string access_token = 3;
uint32 expires_in = 4;
}
Loading

0 comments on commit 04afd6f

Please sign in to comment.