IMessage.cs 756 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Google.Protobuf;
  2. namespace ETHotfix
  3. {
  4. public interface IMessage: Google.Protobuf.IMessage
  5. {
  6. }
  7. public interface IRequest: IMessage
  8. {
  9. int RpcId { get; set; }
  10. }
  11. public interface IResponse : IMessage
  12. {
  13. int Error { get; set; }
  14. string Message { get; set; }
  15. int RpcId { get; set; }
  16. }
  17. public class ResponseMessage : IResponse
  18. {
  19. public int Error { get; set; }
  20. public string Message { get; set; }
  21. public int RpcId { get; set; }
  22. public void MergeFrom(CodedInputStream input)
  23. {
  24. throw new System.NotImplementedException();
  25. }
  26. public void WriteTo(CodedOutputStream output)
  27. {
  28. throw new System.NotImplementedException();
  29. }
  30. public int CalculateSize()
  31. {
  32. throw new System.NotImplementedException();
  33. }
  34. }
  35. }