Inherits from NSObject
Declared in UPMoodAPI.h
UPMoodAPI.m

Overview

Provides an interface for interacting with the user’s moods.

Class Methods

deleteMood:completion:

Delete a mood event.

+ (void)deleteMood:(UPMood *)mood completion:(UPBaseEventAPICompletion)completion

Parameters

mood

The mood event to be deleted. The currently authenticated user must own the mood event.

completion

Block to be executed upon completion. This block is passed the result or any error information.

Discussion

Delete a mood event.

Declared In

UPMoodAPI.h

getCurrentMoodWithCompletion:

Request the current mood of the currently authenticated user.

+ (void)getCurrentMoodWithCompletion:(UPMoodAPICompletion)completion

Parameters

completion

Block to be executed upon completion. This block is passed the result or any error information.

Discussion

Request the current mood of the currently authenticated user.

Declared In

UPMoodAPI.h

postMood:completion:

Post a mood update to the currently authenticated user’s feed.

+ (void)postMood:(UPMood *)mood completion:(UPMoodAPICompletion)completion

Parameters

mood

The new mood event.

completion

Block to be executed upon completion. This block is passed the result or any error information.

Discussion

Post a mood update to the currently authenticated user’s feed.

Declared In

UPMoodAPI.h

refreshMood:completion:

Update an existing mood event.

+ (void)refreshMood:(UPMood *)mood completion:(UPMoodAPICompletion)completion

Parameters

mood

The mood event to be updated.

completion

Block to be executed upon completion. This block is passed the result or any error information.

Discussion

Update an existing mood event.

Declared In

UPMoodAPI.h