Class EasyPostObject
Class for any object that comes from or goes to the EasyPost API.
Inheritance
System.Object
EasyPostObject
Implements
Namespace: EasyPost._base
Assembly: EasyPost.dll
Syntax
public abstract class EasyPostObject : EphemeralEasyPostObject, IEasyPostObject
Properties
| Improve this Doc View SourceCreatedAt
The date and time this object was created.
Declaration
public DateTime? CreatedAt { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<DateTime> |
Id
The EasyPost ID for this object.
Declaration
public string? Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
Prefix
The prefix of the EasyPost ID for this object.
Declaration
public string? Prefix { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
UpdatedAt
The date and time this object was last updated.
Declaration
public DateTime? UpdatedAt { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<DateTime> |
Methods
| Improve this Doc View SourceAsDictionary()
Gets this object as a JSON object (dictionary).
Declaration
public virtual Dictionary<string, object> AsDictionary()
Returns
| Type | Description |
|---|---|
| Dictionary<System.String, System.Object> | A dictionary representation of this object's properties. |
Equals(Nullable<Object>)
Class for any object that comes from or goes to the EasyPost API.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.Object> | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Class for any object that comes from or goes to the EasyPost API.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
| Improve this Doc View SourceToString()
Class for any object that comes from or goes to the EasyPost API.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
Operators
| Improve this Doc View SourceEquality(EasyPostObject, Nullable<Object>)
Class for any object that comes from or goes to the EasyPost API.
Declaration
public static bool operator ==(EasyPostObject one, object? two)
Parameters
| Type | Name | Description |
|---|---|---|
| EasyPostObject | one | |
| System.Nullable<System.Object> | two |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(EasyPostObject, Nullable<Object>)
Class for any object that comes from or goes to the EasyPost API.
Declaration
public static bool operator !=(EasyPostObject one, object? two)
Parameters
| Type | Name | Description |
|---|---|---|
| EasyPostObject | one | |
| System.Nullable<System.Object> | two |
Returns
| Type | Description |
|---|---|
| System.Boolean |