Show / Hide Table of Contents

Class Notification

Two notifications are equal if their Urns are the same.

Inheritance
Object
Notification
AssetRequestNotification
SyncProblemNotification
UpgradeStateNotification
Implements
IEquatable<Notification>
Inherited Members
Object.Equals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: PKWARE.Smartcrypt.MetaClient
Assembly: MetaClient.dll
Syntax
[PublicAPI]
public abstract class Notification : IEquatable<Notification>

Constructors

Notification(String, String, NotificationPriority, String, String)

Declaration
protected Notification([NotNull] string urn, [NotNull] string message, NotificationPriority priority, [CanBeNull] string action1 = null, [CanBeNull] string action2 = null)
Parameters
Type Name Description
String urn
String message
NotificationPriority priority
String action1
String action2

Fields

Action1

Declaration
[CanBeNull]
public readonly string Action1
Field Value
Type Description
String

Action2

Declaration
[CanBeNull]
public readonly string Action2
Field Value
Type Description
String

Message

Declaration
[NotNull]
public readonly string Message
Field Value
Type Description
String

Priority

Declaration
public readonly NotificationPriority Priority
Field Value
Type Description
NotificationPriority

Urn

Declaration
[NotNull]
public readonly string Urn
Field Value
Type Description
String

Methods

Equals(Notification)

Declaration
public bool Equals(Notification other)
Parameters
Type Name Description
Notification other
Returns
Type Description
Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
Object.Equals(Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Operators

Equality(Notification, Notification)

Declaration
public static bool operator ==(Notification left, Notification right)
Parameters
Type Name Description
Notification left
Notification right
Returns
Type Description
Boolean

Inequality(Notification, Notification)

Declaration
public static bool operator !=(Notification left, Notification right)
Parameters
Type Name Description
Notification left
Notification right
Returns
Type Description
Boolean

Implements

System.IEquatable<T>
Back to top Copyright © 2018 PKWARE, Inc.