package NRTYSyncDialog;

message TRequest {
    required string IdResource = 1;
    optional string FileName = 2;
    optional uint64 FromByte = 3;
    optional uint64 SizeBytes = 4;
}

enum TResponseType {
    RT_OK = 1;
    RT_WAIT = 2;
    RT_INCORRECT_REQUEST = 3;
}

message TFileDescription {
    required string FileName = 1;
    required uint64 Size = 2;
}

message TResponse {
    required TResponseType Info = 1;
    repeated TFileDescription Files = 2;
    optional bytes Data = 3;

}
