| 4117 | namespace com.chronoxor.proto { |
| 4118 | |
| 4119 | public struct AccountMessage : IComparable, IComparable<AccountMessage>, IEquatable<AccountMessage> |
| 4120 | { |
| 4121 | public Account body; |
| 4122 | public Guid id => Guid.Empty; |
| 4123 | |
| 4124 | public const long FBETypeConst = 3; |
| 4125 | #if UTF8JSON |
| 4126 | [IgnoreDataMember] |
| 4127 | #else |
| 4128 | [JsonIgnore] |
| 4129 | #endif |
| 4130 | public long FBEType => FBETypeConst; |
| 4131 | |
| 4132 | public static AccountMessage Default => new AccountMessage |
| 4133 | { |
| 4134 | body = global::com.chronoxor.proto.Account.Default |
| 4135 | }; |
| 4136 | |
| 4137 | public AccountMessage(Account body) |
| 4138 | { |
| 4139 | this.body = body; |
| 4140 | } |
| 4141 | |
| 4142 | public AccountMessage Clone() |
| 4143 | { |
| 4144 | // Serialize the struct to the FBE stream |
| 4145 | var writer = new com.chronoxor.proto.FBE.AccountMessageModel(); |
| 4146 | writer.Serialize(this); |
| 4147 | |
| 4148 | // Deserialize the struct from the FBE stream |
| 4149 | var reader = new com.chronoxor.proto.FBE.AccountMessageModel(); |
| 4150 | reader.Attach(writer.Buffer); |
| 4151 | reader.Deserialize(out var result); |
| 4152 | return result; |
| 4153 | } |
| 4154 | |
| 4155 | public int CompareTo(object other) |
| 4156 | { |
| 4157 | int result = 0; |
| 4158 | return result; |
| 4159 | } |
| 4160 | |
| 4161 | public int CompareTo(AccountMessage other) |
| 4162 | { |
| 4163 | int result = 0; |
| 4164 | return result; |
| 4165 | } |
| 4166 | |
| 4167 | public override bool Equals(object other) |
| 4168 | { |
| 4169 | if (!(other is AccountMessage)) |
| 4170 | return false; |
| 4171 | return true; |
| 4172 | } |
| 4173 | |
| 4174 | public bool Equals(AccountMessage other) |
| 4175 | { |
| 4176 | return true; |