Class AddressPackage

Namespace
SIMDispatcher.Core.Models
Assembly
SIMDispatcher.Core.dll

Represents a package of addresses managed within the platform by a user Owner. Packages can be marked as public or private. Create own address packages to build an own address database.

public record AddressPackage : IComparable<AddressPackage>, IComparable, IEquatable<AddressPackage>
Inheritance
AddressPackage
Implements
Inherited Members

Properties

CreatedOn

The date and time when this address package was created.

public DateTimeOffset CreatedOn { get; set; }

Property Value

DateTimeOffset

Id

The unique identifier for the address package. This identifier is automatically generated and is unique across all address packages in the system.

public int Id { get; set; }

Property Value

int

IsPublic

Indicates whether this address package is accessible to other users. If true, the package can be viewed by anyone; otherwise, it is private.

public bool IsPublic { get; set; }

Property Value

bool

Name

The name of the address package. This should be a clear, descriptive name that helps users easily identify the purpose of the package.

public string? Name { get; set; }

Property Value

string

Owner

User information's of the owner of this address package who has control over its contents and settings.

public UserInformation? Owner { get; set; }

Property Value

UserInformation

Methods

CompareTo(AddressPackage?)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(AddressPackage? other)

Parameters

other AddressPackage

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared. The return value has these meanings:

Value Meaning
Less than zero This instance precedes other in the sort order.
Zero This instance occurs in the same position in the sort order as other.
Greater than zero This instance follows other in the sort order.

CompareTo(object?)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(object? obj)

Parameters

obj object

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared. The return value has these meanings:

Value Meaning
Less than zero This instance precedes obj in the sort order.
Zero This instance occurs in the same position in the sort order as obj.
Greater than zero This instance follows obj in the sort order.

Exceptions

ArgumentException

obj is not the same type as this instance.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.