• Home
  • API Documentation

Class Placeholders

Placeholders provides support for using simulated, cached, or historical data to create GroupMe compatible objects that are API compatible with some functionality provided by GroupMeClient. Note that placeholders may be limited in functionality by GroupMe if they do not correspond to actual data.

Inheritance
Object
Placeholders
Namespace: GroupMeClientApi.Models
Assembly: GroupMeClientApi.dll
Syntax
public class Placeholders : object

Methods

| Improve this Doc View Source

CreatePlaceholderChat(String, Member, String)

Creates a placeholder direct message thread.

Declaration
public static Chat CreatePlaceholderChat(string id, Member otherUser, string conversationId)
Parameters
Type Name Description
String id

The unique group ID.

Member otherUser

The user this DM thread is with.

String conversationId

The conversation ID of this chat.

Returns
Type Description
Chat

A placeholder Group.

| Improve this Doc View Source

CreatePlaceholderChat(String, String, String, String, Message)

Creates a placeholder direct message thread.

Declaration
public static Chat CreatePlaceholderChat(string id, string otherUserName, string conversationId, string otherUserID = null, Message latestMessage = null)
Parameters
Type Name Description
String id

The unique group ID.

String otherUserName

The name of the user this DM thread is with.

String conversationId

The conversation ID of this chat.

String otherUserID

The ID of the user this DM thread is with.

Message latestMessage

The latest message in the chat.

Returns
Type Description
Chat

A placeholder Group.

| Improve this Doc View Source

CreatePlaceholderGroup(String, String)

Creates a placeholder group chat.

Declaration
public static Group CreatePlaceholderGroup(string id, string name)
Parameters
Type Name Description
String id

The unique group ID.

String name

The name of the group.

Returns
Type Description
Group

A placeholder Group.

| Improve this Doc View Source

CreatePlaceholderMember(String, String)

Creates a placeholder member profile.

Declaration
public static Member CreatePlaceholderMember(string id, string name)
Parameters
Type Name Description
String id

The unique member ID.

String name

The user's name.

Returns
Type Description
Member

Aa placeholder member.

  • Edit on GitHub
  • View on GitHub
Back to top Generated by DocFX