Home Manual Reference Source
public class | source

ChatPage

Extends:

* → ChatPage

ChatPage

Constructor Summary

Public Constructor
public

constructor(args: args)

Member Summary

Public Members
public

Method Summary

Public Methods
public
public
public
public

async clickContact(name: String)

Clicks contact with provided name

public

contactSearchResult(contactName: *): *

public

contactsListItems(contactName: *): *

public
public

Get the first element in collection of elements

public
public
public

async sendChatMessage(message: String)

Send chat message on current chat page

public

Start a new chat with contact

public

async visit()

Visits this page

Public Constructors

public constructor(args: args) source

Params:

NameTypeAttributeDescription
args args

Args from controller

Public Members

public navPanel: * source

Public Methods

public chatContactSearchBar(): * source

Return:

*

public chatMessageField(): * source

Return:

*

public chatWindowHeader(): * source

Return:

*

public async clickContact(name: String) source

Clicks contact with provided name

Params:

NameTypeAttributeDescription
name String

Name of contact

public contactSearchResult(contactName: *): * source

Params:

NameTypeAttributeDescription
contactName *

Return:

*

public contactsListItems(contactName: *): * source

Params:

NameTypeAttributeDescription
contactName *

Return:

*

public conversationWindow(): * source

Return:

*

public async getChatMessages(): Array source

Get the first element in collection of elements

Return:

Array

Array of message objects

Example:

{ 
  from: 'User 2', 
  timestamp: '12:20 PM', 
  message: 'hey, did you see the game?' 
}

public messageDivs(): * source

Return:

*

public newChatButton(): * source

Return:

*

public async sendChatMessage(message: String) source

Send chat message on current chat page

Params:

NameTypeAttributeDescription
message String

Text of message to send

public async startNewChatWithContact(name: String) source

Start a new chat with contact

Params:

NameTypeAttributeDescription
name String

Name of contact to start chat with

public async visit() source

Visits this page