/**
 * Appcelerator Platform SDK
 * Copyright (c) 2014 by Appcelerator, Inc. All Rights Reserved.
 * Proprietary and Confidential - This source code is not for redistribution
 */

#import <Foundation/Foundation.h>
#import "APSCloud.h"


/**
 * The Statuses object lets your application create and manage Twitter-like status messages.
 * The REST object of this class contains the following fields:<ul>
 * <li>acls (APSACLs[]): Single-element array containing the ACLs associated with this status object, if any.</li>
 * <li>created_at (NSString): Message creation date.</li>
 * <li>event (APSEvents): The event object associated with this status.</li>
 * <li>id (NSString): Generated unique ID for this status.</li>
 * <li>message (NSString): Status message.</li>
 * <li>photo (APSPhotos): The primary photo for this status.</li>
 * <li>place (APSPlaces): The place object associated with this status.</li>
 * <li>tags (NSString): Comma-separated list of tags associated with this status.</li>
 * <li>updated_at (NSString): Message update date.</li>
 * <li>user (APSUsers): Status owner.</li>
 * </ul>
 * For more details about the underlying REST object, see the [ACS API Docs](http://docs.appcelerator.com/cloud/latest/#!/api/Statuses).
 */

@interface APSStatuses : NSObject




/**
 * Creates a status for the currenty logged in user. 
 *
 * To use this method, **a user must be logged in before calling this method.**
 *
 * For more details about the underlying REST method, see the
 * [ACS API Docs](http://docs.appcelerator.com/cloud/latest/#!/api/Statuses-method-create).
 * @param data Method parameters specified as an NSDictionary with the following key-value pairs:<ul> 
 * <li>message (NSString): Status message.</li>
 * <li>place_id (NSString): ID of the place this status is associated with.</li>
 * <li>event_id (NSString): ID of the event this status is associated with.</li>
 * <li>photo (APSPhotos): New photo to attach as the primary photo for this status.</li>
 * <li>photo_id (NSString): ID of an existing photo to attach as the primary photo for this status.</li>
 * <li>tags (NSString): Comma separated list of tags for this status.</li>
 * <li>custom_fields (NSString/NSDictionary): User defined fields.</li>
 * <li>acl_name (NSString): Name of an ACLs to associate with this status.</li>
 * <li>acl_id (NSString): ID of an ACLs to associate with this status.</li>
 * <li>user_id (NSString): User ID to create the status on behalf of.</li>
 * </ul>
 * @param handler Callback to handle the server response. See the Callback section in APSClient.
 * The response data returns the following method-specific properties:<ul>
 * <li>statuses (APSStatuses[]): Single-element array containing the newly-created status.</li>
 * </ul>
 */

+ (void)create:(NSDictionary *)data withBlock:(APSResponseHandler)handler;


/**
 * Creates a status for the currenty logged in user. 
 *
 * To use this method, **a user must be logged in before calling this method.**
 *
 * For more details about the underlying REST method, see the
 * [ACS API Docs](http://docs.appcelerator.com/cloud/latest/#!/api/Statuses-method-create).
 * @param data Method parameters specified as an NSDictionary with the following key-value pairs:<ul> 
 * <li>message (NSString): Status message.</li>
 * <li>place_id (NSString): ID of the place this status is associated with.</li>
 * <li>event_id (NSString): ID of the event this status is associated with.</li>
 * <li>photo (APSPhotos): New photo to attach as the primary photo for this status.</li>
 * <li>photo_id (NSString): ID of an existing photo to attach as the primary photo for this status.</li>
 * <li>tags (NSString): Comma separated list of tags for this status.</li>
 * <li>custom_fields (NSString/NSDictionary): User defined fields.</li>
 * <li>acl_name (NSString): Name of an ACLs to associate with this status.</li>
 * <li>acl_id (NSString): ID of an ACLs to associate with this status.</li>
 * <li>user_id (NSString): User ID to create the status on behalf of.</li>
 * </ul>
 * @param handler Callback to handle the server response. See the Callback section in APSClient.
 * The response data returns the following method-specific properties:<ul>
 * <li>statuses (APSStatuses[]): Single-element array containing the newly-created status.</li>
 * </ul>
 * @param progressHandler Callback to handle the progress of the request. See the Callback section in APSClient.
 */

+ (void)create:(NSDictionary *)data withBlock:(APSResponseHandler)handler progressBlock:(APSProgressHandler)progressHandler;




/**
 * Updates a status for the currenty logged in user. 
 *
 * To use this method, **a user must be logged in before calling this method.**
 *
 * For more details about the underlying REST method, see the
 * [ACS API Docs](http://docs.appcelerator.com/cloud/latest/#!/api/Statuses-method-update).
 * @param data Method parameters specified as an NSDictionary with the following key-value pairs:<ul> 
 * <li>status_id (NSString): ID of the status to update. (required)</li>
 * <li>message (NSString): Status message.</li>
 * <li>place_id (NSString): ID of the place this status is associated with.</li>
 * <li>event_id (NSString): ID of the event this status is associated with.</li>
 * <li>photo (APSPhotos): New photo to attach as the primary photo for this status.</li>
 * <li>photo_id (NSString): ID of an existing photo to attach as the primary photo for this status.</li>
 * <li>tags (NSString): Comma separated list of tags for this status.</li>
 * <li>custom_fields (NSString/NSDictionary): User defined fields.</li>
 * <li>acl_name (NSString): Name of an ACLs to associate with this status.</li>
 * <li>acl_id (NSString): ID of an ACLs to associate with this status.</li>
 * <li>user_id (NSString): User ID to update the status on behalf of.</li>
 * </ul>
 * @param handler Callback to handle the server response. See the Callback section in APSClient.
 * The response data returns the following method-specific properties:<ul>
 * <li>statuses (APSStatuses[]): Single-element array containing the updated status.</li>
 * </ul>
 */

+ (void)update:(NSDictionary *)data withBlock:(APSResponseHandler)handler;


/**
 * Updates a status for the currenty logged in user. 
 *
 * To use this method, **a user must be logged in before calling this method.**
 *
 * For more details about the underlying REST method, see the
 * [ACS API Docs](http://docs.appcelerator.com/cloud/latest/#!/api/Statuses-method-update).
 * @param data Method parameters specified as an NSDictionary with the following key-value pairs:<ul> 
 * <li>status_id (NSString): ID of the status to update. (required)</li>
 * <li>message (NSString): Status message.</li>
 * <li>place_id (NSString): ID of the place this status is associated with.</li>
 * <li>event_id (NSString): ID of the event this status is associated with.</li>
 * <li>photo (APSPhotos): New photo to attach as the primary photo for this status.</li>
 * <li>photo_id (NSString): ID of an existing photo to attach as the primary photo for this status.</li>
 * <li>tags (NSString): Comma separated list of tags for this status.</li>
 * <li>custom_fields (NSString/NSDictionary): User defined fields.</li>
 * <li>acl_name (NSString): Name of an ACLs to associate with this status.</li>
 * <li>acl_id (NSString): ID of an ACLs to associate with this status.</li>
 * <li>user_id (NSString): User ID to update the status on behalf of.</li>
 * </ul>
 * @param handler Callback to handle the server response. See the Callback section in APSClient.
 * The response data returns the following method-specific properties:<ul>
 * <li>statuses (APSStatuses[]): Single-element array containing the updated status.</li>
 * </ul>
 * @param progressHandler Callback to handle the progress of the request. See the Callback section in APSClient.
 */

+ (void)update:(NSDictionary *)data withBlock:(APSResponseHandler)handler progressBlock:(APSProgressHandler)progressHandler;




/**
 * Returns the identified status message. 
 *
 * For more details about the underlying REST method, see the
 * [ACS API Docs](http://docs.appcelerator.com/cloud/latest/#!/api/Statuses-method-show).
 * @param data Method parameters specified as an NSDictionary with the following key-value pairs:<ul> 
 * <li>status_id (NSString): ID of the status to show. (required)</li>
 * <li>response_json_depth (NSNumber): Nested object depth level counts in response JSON.</li>
 * <li>show_user_like (NSBoolean): If set to true the Status object in the response will include "current_user_liked: true" if the current user has liked the object.</li>
 * </ul>
 * @param handler Callback to handle the server response. See the Callback section in APSClient.
 * The response data returns the following method-specific properties:<ul>
 * <li>statuses (APSStatuses[]): Single-element array containing the identified status.</li>
 * </ul>
 */

+ (void)show:(NSDictionary *)data withBlock:(APSResponseHandler)handler;




+ (void)search:(NSDictionary *)data withBlock:(APSResponseHandler)handler;




/**
 * Performs a custom query of statuses with sorting and pagination. 
 *
 * For more details about the underlying REST method, see the
 * [ACS API Docs](http://docs.appcelerator.com/cloud/latest/#!/api/Statuses-method-query).
 * @param data Method parameters specified as an NSDictionary with the following key-value pairs:<ul> 
 * <li>page (NSNumber): Request page number, default is 1.</li>
 * <li>per_page (NSNumber): Number of results per page, default is 10.</li>
 * <li>limit (NSNumber): Instead of using page and per_page for pagination, you can use limit and skip to do your own pagination.</li>
 * <li>skip (NSNumber): Number of records to skip.</li>
 * <li>where (NSDictionary): Constraint values for fields.</li>
 * <li>order (NSString): Sort results by one or more fields.</li>
 * <li>sel (NSDictionary): Selects the object fields to display.</li>
 * <li>show_user_like (NSBoolean): If set to true, each Status object in the response includes "current_user_liked: true"  if the current user has liked the object.</li>
 * <li>unsel (NSDictionary): Selects the object fields NOT to display.</li>
 * <li>response_json_depth (NSNumber): Nested object depth level counts in the response JSON.</li>
 * </ul>
 * @param handler Callback to handle the server response. See the Callback section in APSClient.
 * The response data returns the following method-specific properties:<ul>
 * <li>statuses (APSStatuses[]): List of statuses matching the query criteria.</li>
 * </ul>
 */

+ (void)query:(NSDictionary *)data withBlock:(APSResponseHandler)handler;




/**
 * Deletes a status for the currenty logged in user. 
 *
 * To use this method, **a user must be logged in before calling this method.**
 *
 * For more details about the underlying REST method, see the
 * [ACS API Docs](http://docs.appcelerator.com/cloud/latest/#!/api/Statuses-method-delete).
 * @param data Method parameters specified as an NSDictionary with the following key-value pairs:<ul> 
 * <li>status_id (NSString): ID of the status to delete. (required)</li>
 * <li>user_id (NSString): User ID to destroy the status on behalf of.</li>
 * </ul>
 * @param handler Callback to handle the server response. See the Callback section in APSClient.
 */

+ (void)remove:(NSDictionary *)data withBlock:(APSResponseHandler)handler;



@end
