| 3546 | namespace com.chronoxor.proto { |
| 3547 | |
| 3548 | public struct BalanceMessage : IComparable, IComparable<BalanceMessage>, IEquatable<BalanceMessage> |
| 3549 | { |
| 3550 | public Balance body; |
| 3551 | public Guid id => Guid.Empty; |
| 3552 | |
| 3553 | public const long FBETypeConst = 2; |
| 3554 | #if UTF8JSON |
| 3555 | [IgnoreDataMember] |
| 3556 | #else |
| 3557 | [JsonIgnore] |
| 3558 | #endif |
| 3559 | public long FBEType => FBETypeConst; |
| 3560 | |
| 3561 | public static BalanceMessage Default => new BalanceMessage |
| 3562 | { |
| 3563 | body = global::com.chronoxor.proto.Balance.Default |
| 3564 | }; |
| 3565 | |
| 3566 | public BalanceMessage(Balance body) |
| 3567 | { |
| 3568 | this.body = body; |
| 3569 | } |
| 3570 | |
| 3571 | public BalanceMessage Clone() |
| 3572 | { |
| 3573 | // Serialize the struct to the FBE stream |
| 3574 | var writer = new com.chronoxor.proto.FBE.BalanceMessageModel(); |
| 3575 | writer.Serialize(this); |
| 3576 | |
| 3577 | // Deserialize the struct from the FBE stream |
| 3578 | var reader = new com.chronoxor.proto.FBE.BalanceMessageModel(); |
| 3579 | reader.Attach(writer.Buffer); |
| 3580 | reader.Deserialize(out var result); |
| 3581 | return result; |
| 3582 | } |
| 3583 | |
| 3584 | public int CompareTo(object other) |
| 3585 | { |
| 3586 | int result = 0; |
| 3587 | return result; |
| 3588 | } |
| 3589 | |
| 3590 | public int CompareTo(BalanceMessage other) |
| 3591 | { |
| 3592 | int result = 0; |
| 3593 | return result; |
| 3594 | } |
| 3595 | |
| 3596 | public override bool Equals(object other) |
| 3597 | { |
| 3598 | if (!(other is BalanceMessage)) |
| 3599 | return false; |
| 3600 | return true; |
| 3601 | } |
| 3602 | |
| 3603 | public bool Equals(BalanceMessage other) |
| 3604 | { |
| 3605 | return true; |