Remove setters where possible
This commit is contained in:
parent
e8b69dfe29
commit
cb8f29cc47
@ -8,7 +8,7 @@ using NodaTime.Text;
|
|||||||
namespace PluralKit.Core {
|
namespace PluralKit.Core {
|
||||||
public class PKMember
|
public class PKMember
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; }
|
||||||
public string Hid { get; set; }
|
public string Hid { get; set; }
|
||||||
public int System { get; set; }
|
public int System { get; set; }
|
||||||
public string Color { get; set; }
|
public string Color { get; set; }
|
||||||
@ -20,8 +20,8 @@ namespace PluralKit.Core {
|
|||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
public ICollection<ProxyTag> ProxyTags { get; set; }
|
public ICollection<ProxyTag> ProxyTags { get; set; }
|
||||||
public bool KeepProxy { get; set; }
|
public bool KeepProxy { get; set; }
|
||||||
public Instant Created { get; set; }
|
public Instant Created { get; }
|
||||||
public int MessageCount { get; set; }
|
public int MessageCount { get; }
|
||||||
|
|
||||||
public PrivacyLevel MemberPrivacy { get; set; }
|
public PrivacyLevel MemberPrivacy { get; set; }
|
||||||
|
|
||||||
|
@ -3,15 +3,8 @@
|
|||||||
namespace PluralKit.Core {
|
namespace PluralKit.Core {
|
||||||
public class PKSwitch
|
public class PKSwitch
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; }
|
||||||
public int System { get; set; }
|
public int System { get; set; }
|
||||||
public Instant Timestamp { get; set; }
|
public Instant Timestamp { get; }
|
||||||
}
|
|
||||||
|
|
||||||
public class PKSwitchMember
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public int Switch { get; set; }
|
|
||||||
public int Member { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -8,14 +8,14 @@ namespace PluralKit.Core {
|
|||||||
public class PKSystem
|
public class PKSystem
|
||||||
{
|
{
|
||||||
// Additions here should be mirrored in SystemStore::Save
|
// Additions here should be mirrored in SystemStore::Save
|
||||||
[Key] public int Id { get; set; }
|
[Key] public int Id { get; }
|
||||||
public string Hid { get; set; }
|
public string Hid { get; }
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
public string Tag { get; set; }
|
public string Tag { get; set; }
|
||||||
public string AvatarUrl { get; set; }
|
public string AvatarUrl { get; set; }
|
||||||
public string Token { get; set; }
|
public string Token { get; set; }
|
||||||
public Instant Created { get; set; }
|
public Instant Created { get; }
|
||||||
public string UiTz { get; set; }
|
public string UiTz { get; set; }
|
||||||
public bool PingsEnabled { get; set; }
|
public bool PingsEnabled { get; set; }
|
||||||
public PrivacyLevel DescriptionPrivacy { get; set; }
|
public PrivacyLevel DescriptionPrivacy { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user