123456789101112131415161718192021222324252627282930313233 |
- using ProtoBuf;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- namespace TEAMModelGrpc.Models
- {
- [ProtoContract]
- public class Response
- {
- /// <summary>
- ///
- /// </summary>
- [ProtoMember(1)]
- public string message { get; set; }
- /// <summary>
- ///
- /// </summary>
- [ProtoMember(2)]
- public int code { get; set; }
- public Response Success()
- {
- this.code = 200;
- this.message = "Success";
- return this;
- }
- }
- }
|