-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
436 additions
and
477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,30 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace RustPlusApi.Fcm.Data | ||
namespace RustPlusApi.Fcm.Data | ||
{ | ||
public sealed class Credentials | ||
{ | ||
[JsonProperty(PropertyName = "keys")] | ||
public Keys Keys { get; set; } = null!; | ||
[JsonProperty(PropertyName = "fcm")] | ||
public FcmCredentials Fcm { get; set; } = null!; | ||
[JsonProperty(PropertyName = "gcm")] | ||
public GcmCredentials Gcm { get; set; } = null!; | ||
} | ||
|
||
public sealed class Keys | ||
{ | ||
[JsonProperty(PropertyName = "privateKey")] | ||
public string PrivateKey { get; set; } = null!; | ||
|
||
[JsonProperty(PropertyName = "publicKey")] | ||
public string PublicKey { get; set; } = null!; | ||
|
||
[JsonProperty(PropertyName = "authSecret")] | ||
public string AuthSecret { get; set; } = null!; | ||
} | ||
|
||
public sealed class FcmCredentials | ||
{ | ||
[JsonProperty(PropertyName = "token")] | ||
public string Token { get; set; } = null!; | ||
[JsonProperty(PropertyName = "pushSet")] | ||
public string PushSet { get; set; } = null!; | ||
} | ||
|
||
public sealed class GcmCredentials | ||
{ | ||
[JsonProperty(PropertyName = "token")] | ||
public string Token { get; set; } = null!; | ||
[JsonProperty(PropertyName = "androidId")] | ||
public ulong AndroidId { get; set; } | ||
[JsonProperty(PropertyName = "securityToken")] | ||
public ulong SecurityToken { get; set; } | ||
[JsonProperty(PropertyName = "appId")] | ||
public string AppId { get; set; } = null!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.