mirror of https://github.com/ivanch/tcc.git
25 lines
478 B
C#
25 lines
478 B
C#
using ProtoBuf;
|
|
|
|
namespace tcc_app.Models
|
|
{
|
|
[ProtoContract()]
|
|
public class PersonProto
|
|
{
|
|
[ProtoMember(1)]
|
|
public string Name { get; set; }
|
|
|
|
[ProtoMember(2)]
|
|
public int Age { get; set; }
|
|
|
|
[ProtoMember(3)]
|
|
public List<string> Friends { get; set; }
|
|
|
|
[ProtoMember(4)]
|
|
public string Email { get; set; }
|
|
|
|
[ProtoMember(5)]
|
|
public string Phone { get; set; }
|
|
}
|
|
|
|
}
|