2022-09-04 02:23:35 +00:00
|
|
|
using System.Numerics;
|
2022-09-03 23:45:16 +00:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
using Newtonsoft.Json.Serialization;
|
|
|
|
|
|
|
|
namespace OrangeGuidanceTomestone;
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
[JsonObject(NamingStrategyType = typeof(SnakeCaseNamingStrategy))]
|
|
|
|
internal class Message {
|
|
|
|
public Guid Id { get; init; }
|
|
|
|
public float X { get; init; }
|
|
|
|
public float Y { get; init; }
|
|
|
|
public float Z { get; init; }
|
|
|
|
|
|
|
|
[JsonProperty("message")]
|
|
|
|
public string Text { get; init; }
|
2022-09-04 02:23:35 +00:00
|
|
|
|
2022-09-03 23:45:16 +00:00
|
|
|
public int PositiveVotes { get; init; }
|
|
|
|
public int NegativeVotes { get; init; }
|
2022-09-04 02:23:35 +00:00
|
|
|
|
|
|
|
internal Vector3 Position => new(this.X, this.Y, this.Z);
|
2022-09-03 23:45:16 +00:00
|
|
|
}
|