syntax = "proto3";

package ccim.protocol;

option csharp_namespace = "CCIM.Protocol";

message CreateChannelRequest {
    string name = 1;
    string tag = 2;
    bool open = 3;
    repeated int64 user_ids = 4;
    int32 limit = 5;
    string game_server = 6;
}

message CreateChannelResponse {
    int64 channel_id = 1;
}

message JoinChannelRequest {
    int64 channel_id = 1;
}

message JoinChannelResponse {
}

message RemoveMemberRequest {
    int64 channel_id = 1;
    int64 user_id = 2;
}

message RemoveMemberResponse {}

message ExitChannelRequest {
    int64 channel_id = 1;
}

message ExitChannelResponse {
}

message ChannelBlockUserRequest {
    int64 channel_id = 1;
    int64 blocked_user_id = 2;
    int64 expired_at_millis = 3;
}

message ChannelBlockUserResponse {
}