Class Contact
Represents a GroupMe Contact.
Implements
Namespace: GroupMeClientApi.Models
Assembly: GroupMeClientApi.dll
Syntax
public class Contact : object, IAvatarSource
Properties
| Improve this Doc View SourceAppInstalled
Gets a value indicating whether the Contact has the GroupMe app installed.
Declaration
public bool AppInstalled { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
AvatarUrl
Gets the Url to the Contact's avatar picture.
Declaration
public string AvatarUrl { get; }
Property Value
| Type | Description |
|---|---|
| String |
Blocked
Gets a value indicating whether the Contact has been blocked.
Declaration
public bool Blocked { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Client
Gets the GroupMeClient that manages.
Declaration
public GroupMeClient Client { get; }
Property Value
| Type | Description |
|---|---|
| GroupMeClient |
CreatedAtIso8601Time
Gets the ISO8601 timestamp when the Contact was created.
Declaration
public string CreatedAtIso8601Time { get; }
Property Value
| Type | Description |
|---|---|
| String |
CreatedAtTime
Gets the time when the Contact was created.
Declaration
public DateTime CreatedAtTime { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
CreatedAtUnixTime
Gets the Unix Timestamp when the Contact was created.
Declaration
public int CreatedAtUnixTime { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Hidden
Gets a value indicating whether the Contact is hidden.
Declaration
public bool Hidden { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Id
Gets the Contact's unique identifier.
Declaration
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| String |
ImageOrAvatarUrl
Gets the Url to the Contact's avatar.
Declaration
public string ImageOrAvatarUrl { get; }
Property Value
| Type | Description |
|---|---|
| String |
Name
Gets a Contact's full name or username.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| String |
UpdatedAtIso8601Time
Gets the ISO 8601 timestamp when the Contact was last updated.
Declaration
public string UpdatedAtIso8601Time { get; }
Property Value
| Type | Description |
|---|---|
| String |
UpdatedAtTime
Gets the time when the Contact was last updated.
Declaration
public DateTime UpdatedAtTime { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
UpdatedAtUnixTime
Gets the Unix Timestamp when the Contact was last updated.
Declaration
public int UpdatedAtUnixTime { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
UserId
Gets the user id for a Contact.
Declaration
public string UserId { get; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
| Improve this Doc View SourceBlockContact()
Blocks this Contact.
Declaration
public Task<bool> BlockContact()
Returns
| Type | Description |
|---|---|
| Task<Boolean> | True if this Contact is successfully blocked. |
UnblockContact()
Unblocks this Contact.
Declaration
public Task<bool> UnblockContact()
Returns
| Type | Description |
|---|---|
| Task<Boolean> | True if this Contact is successfully unblocked. |
Explicit Interface Implementations
| Improve this Doc View SourceIAvatarSource.IsRoundedAvatar
Gets a value indicating whether the avatar image should be rounded for this IAvatarSource.
Declaration
bool IAvatarSource.IsRoundedAvatar { get; }
Returns
| Type | Description |
|---|---|
| Boolean |