-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored related to GetTokens and version
- Loading branch information
1 parent
ce67489
commit c616ba7
Showing
17 changed files
with
251 additions
and
176 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
exclude_paths: | ||
- '**/Examples/**' | ||
- '**/UnitTests/**' | ||
- '**/Editor/**' | ||
- '**/PlayModeTests/**' | ||
- '**/netstandard2.0/**' | ||
- '**/Plugins/**' | ||
- '**/Scripts/PubnubExample.*' | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Serialization; | ||
|
||
namespace PubnubApi | ||
{ | ||
public class PNTokenKey | ||
{ | ||
[JsonProperty("ResourceType ")] | ||
public string ResourceType { get; set; } | ||
|
||
[JsonProperty("ResourceId ")] | ||
public string ResourceId { get; set; } | ||
|
||
[JsonProperty("PatternFlag ")] | ||
public int PatternFlag { get; set; } | ||
|
||
public override bool Equals(object obj) | ||
{ | ||
PNTokenKey currentKey = obj as PNTokenKey; | ||
if (currentKey == null) | ||
{ | ||
return false; | ||
} | ||
return currentKey.ResourceType == this.ResourceType && currentKey.ResourceId == this.ResourceId && currentKey.PatternFlag == this.PatternFlag; | ||
} | ||
|
||
public override int GetHashCode() => ResourceType.GetHashCode() ^ PatternFlag.GetHashCode() ^ ResourceId.GetHashCode(); | ||
} | ||
} |
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.