using System; using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; namespace Shadowsocks.Models { public class Group : IGroup { /// /// Gets or sets the group name. /// public string Name { get; set; } /// /// Gets or sets the UUID of the group. /// public Guid Id { get; set; } /// public int Version { get; set; } /// public List Servers { get; set; } /// /// Gets or sets the data usage in bytes. /// The value is fetched from SIP008 provider. /// public ulong BytesUsed { get; set; } /// /// Gets or sets the data remaining to be used in bytes. /// The value is fetched from SIP008 provider. /// public ulong BytesRemaining { get; set; } public Group() : this(string.Empty) { } public Group(string name) { Name = name; Id = new Guid(); Version = 1; BytesUsed = 0UL; BytesRemaining = 0UL; Servers = new List(); } } }