My Project
Loading...
Searching...
No Matches
Public Member Functions | List of all members
DG.TrelloAPI.Trello Class Reference

Public Member Functions

 Trello (string key, string token)
 
bool IsListCached (string listName)
 Checks if the Trello list has already been cached;.
 
IEnumerator PopulateBoardsRoutine ()
 Async Download a parsed JSON list of the boards in the users account, these are cached on "boards".
 
void SetCurrentBoard (string name)
 Looks for the board in "boards" and if found sets it as the current board.
 
IEnumerator PopulateListsRoutine ()
 Async Populate the lists owned by the current board, these are cached for faster card uploading later. Trello Lists come from trello as a parsed JSON list of lists.
 
IEnumerator PopulateCardsFromListRoutine (string listId)
 Async Populate the cards for the current list, these are cached for easy card attachment uploading later. Gets from trello a parsed JSON list of cards.
 
TrelloCard NewCard (string listName)
 Makes a new Trello card object.
 
TrelloCard NewCard (string title, string description, string listName, bool newCardsOnTop=true)
 Makes a new Trello card object.
 
TrelloList NewList ()
 Creates a new Trello list object, with the current board id. It does not upload the list.
 
TrelloList NewList (string name)
 Creates a new Trello list object, with the current board id.
 
IEnumerator UploadCardRoutine (TrelloCard card)
 Given an exception object, a TrelloCard is created and populated with the relevant information from the exception. This is then uploaded to the Trello server.
 
IEnumerator UploadListRoutine (TrelloList list)
 Async uploads a given TrelloList object to the currently selected board.
 
IEnumerator SetUpAttachmentInCardRoutine (string cardId, string attachmentName, Texture2D image)
 Async uploads an attachment to a given TrelloCard object in the Trello servers.
 
IEnumerator SetUpAttachmentInCardRoutine (string cardId, string attachmentName, string data)
 Async uploads an attachment to a given TrelloCard object on the Trello servers.
 
IEnumerator SetUpAttachmentInCardFromFileRoutine (string cardId, string attachmentName, string path)
 Async uploads an attachment to a given TrelloCard object in the Trello servers.
 
bool IsConnected ()
 Async Populate the cards for the current list, these are cached for easy card attachment uploading later.
 

Member Function Documentation

◆ IsConnected()

bool DG.TrelloAPI.Trello.IsConnected ( )
inline

Async Populate the cards for the current list, these are cached for easy card attachment uploading later.

Returns
A parsed JSON list of cards.

◆ IsListCached()

bool DG.TrelloAPI.Trello.IsListCached ( string  listName)
inline

Checks if the Trello list has already been cached;.

Parameters
listNameThe name of the list to check.
Returns
true if the list has been cached

◆ NewCard() [1/2]

TrelloCard DG.TrelloAPI.Trello.NewCard ( string  listName)
inline

Makes a new Trello card object.

Returns
The card object.
Parameters
listNameName of the trello list to which the card will belong.

◆ NewCard() [2/2]

TrelloCard DG.TrelloAPI.Trello.NewCard ( string  title,
string  description,
string  listName,
bool  newCardsOnTop = true 
)
inline

Makes a new Trello card object.

Returns
The card object.
Parameters
titleName of the card.
descriptionDescription of the card.
listNameName of the trello list to which the card will belong.
newCardsOnTopShould the card be placed on top of the List?

◆ NewList() [1/2]

TrelloList DG.TrelloAPI.Trello.NewList ( )
inline

Creates a new Trello list object, with the current board id. It does not upload the list.

Returns
The list object.

◆ NewList() [2/2]

TrelloList DG.TrelloAPI.Trello.NewList ( string  name)
inline

Creates a new Trello list object, with the current board id.

Returns
The list object.
Parameters
nameName of the list.

◆ PopulateBoardsRoutine()

IEnumerator DG.TrelloAPI.Trello.PopulateBoardsRoutine ( )
inline

Async Download a parsed JSON list of the boards in the users account, these are cached on "boards".

Returns

◆ PopulateCardsFromListRoutine()

IEnumerator DG.TrelloAPI.Trello.PopulateCardsFromListRoutine ( string  listId)
inline

Async Populate the cards for the current list, these are cached for easy card attachment uploading later. Gets from trello a parsed JSON list of cards.

Returns

◆ PopulateListsRoutine()

IEnumerator DG.TrelloAPI.Trello.PopulateListsRoutine ( )
inline

Async Populate the lists owned by the current board, these are cached for faster card uploading later. Trello Lists come from trello as a parsed JSON list of lists.

Returns
.

◆ SetCurrentBoard()

void DG.TrelloAPI.Trello.SetCurrentBoard ( string  name)
inline

Looks for the board in "boards" and if found sets it as the current board.

Parameters
nameName of the board to search.

◆ SetUpAttachmentInCardFromFileRoutine()

IEnumerator DG.TrelloAPI.Trello.SetUpAttachmentInCardFromFileRoutine ( string  cardId,
string  attachmentName,
string  path 
)
inline

Async uploads an attachment to a given TrelloCard object in the Trello servers.

Parameters
cardIdthe cards ID.
attachmentNameThe name of the attachment.
paththe path to the text file to be attached

◆ SetUpAttachmentInCardRoutine() [1/2]

IEnumerator DG.TrelloAPI.Trello.SetUpAttachmentInCardRoutine ( string  cardId,
string  attachmentName,
string  data 
)
inline

Async uploads an attachment to a given TrelloCard object on the Trello servers.

Parameters
cardIdthe cards ID.
attachmentNameThe name of the attachment.
dataAny aditional data needed i.e save file

◆ SetUpAttachmentInCardRoutine() [2/2]

IEnumerator DG.TrelloAPI.Trello.SetUpAttachmentInCardRoutine ( string  cardId,
string  attachmentName,
Texture2D  image 
)
inline

Async uploads an attachment to a given TrelloCard object in the Trello servers.

Parameters
cardIdYour cards ID.
attachmentNameThe name of the attachment.
imageA 2d texture for the attachment.

◆ UploadCardRoutine()

IEnumerator DG.TrelloAPI.Trello.UploadCardRoutine ( TrelloCard  card)
inline

Given an exception object, a TrelloCard is created and populated with the relevant information from the exception. This is then uploaded to the Trello server.

Returns
The exception card.
Parameters
eE.

Async uploads a given TrelloCard object to the Trello servers.

Returns
Your card ID.
Parameters
cardthe card to upload.

◆ UploadListRoutine()

IEnumerator DG.TrelloAPI.Trello.UploadListRoutine ( TrelloList  list)
inline

Async uploads a given TrelloList object to the currently selected board.

Returns
Your list ID.
Parameters
listthe list to upload.

The documentation for this class was generated from the following file: