Class PushSubscription
Class representing a push subscription
Inheritance
System.Object
PushSubscription
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lib.Net.Http.WebPush
Assembly: Lib.Net.Http.WebPush.dll
Syntax
public class PushSubscription
Properties
Endpoint
Gets or sets the subscription endpoint.
Declaration
public string Endpoint { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Keys
Gets or sets client keys shared as part of subscription.
Declaration
public IDictionary<string, string> Keys { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> |
Methods
GetKey(PushEncryptionKeyName)
Gets specific client key shared as part of subscription.
Declaration
public string GetKey(PushEncryptionKeyName keyName)
Parameters
Type | Name | Description |
---|---|---|
PushEncryptionKeyName | keyName | The key name. |
Returns
Type | Description |
---|---|
System.String | The key. |
SetKey(PushEncryptionKeyName, String)
Sets specific client key shared as part of subscription.
Declaration
public void SetKey(PushEncryptionKeyName keyName, string key)
Parameters
Type | Name | Description |
---|---|---|
PushEncryptionKeyName | keyName | The key name. |
System.String | key | The key. |