RRUploadFile

Objective-C

@interface RRUploadFile : NSObject <NSCopying>

/// Automatically generated uuid
@property (nonatomic, strong) NSString *uuid;

/// Defines uploaded file name
@property (nonatomic, strong) NSString *name;

/// Binary file representation
@property (nonatomic, strong) NSData *data;

/// File MIME type
@property (nonatomic, strong) NSString *mime;

/** File type
 5 = ADDITIONAL_VIEW
 7 = DEPTH
 8 = MATRIX
 */
@property (nonatomic, strong) NSNumber *type;

/** Initializes the `RRUploadFile` from an NSData object

 @param data binary representation uploaded file
 @return an instance of `RRUploadFile`
*/
- (instancetype)initWithData:(NSData *)data;

/** Initializes the `RRUploadFile` from an NSData object and NSString name

 @param data binary representation uploaded file
 @param name string representing uploaded file name
 @return an instance of `RRUploadFile`
*/
- (instancetype)initWithData:(NSData *)data name:(NSString *)name;

/** Initializes the `RRUploadFile` from an NSData object and NSString name giving it specific uuid string

 @param data binary representation uploaded file
 @param name string representing uploaded file name
 @param uuid string representing file uuid
 @return an instance of `RRUploadFile`
*/
- (instancetype)initWithData:(NSData *)data name:(NSString *)name uuid:(NSString *)uuid;

@end

Swift

class RRUploadFile : NSObject, NSCopying

Undocumented

  • Automatically generated uuid

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *uuid;

    Swift

    var uuid: String! { get set }
  • Defines uploaded file name

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *name;

    Swift

    var name: String! { get set }
  • Binary file representation

    Declaration

    Objective-C

    @property (nonatomic, strong) NSData *data;

    Swift

    var data: Data! { get set }
  • File MIME type

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *mime;

    Swift

    var mime: String! { get set }
  • File type 5 = ADDITIONAL_VIEW 7 = DEPTH 8 = MATRIX

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *type;

    Swift

    var type: NSNumber! { get set }
  • Initializes the RRUploadFile from an NSData object

    Declaration

    Objective-C

    - (instancetype)initWithData:(NSData *)data;

    Swift

    init!(data: Data!)

    Parameters

    data

    binary representation uploaded file

    Return Value

    an instance of RRUploadFile

  • Initializes the RRUploadFile from an NSData object and NSString name

    Declaration

    Objective-C

    - (instancetype)initWithData:(NSData *)data name:(NSString *)name;

    Swift

    init!(data: Data!, name: String!)

    Parameters

    data

    binary representation uploaded file

    name

    string representing uploaded file name

    Return Value

    an instance of RRUploadFile

  • Initializes the RRUploadFile from an NSData object and NSString name giving it specific uuid string

    Declaration

    Objective-C

    - (instancetype)initWithData:(NSData *)data
                            name:(NSString *)name
                            uuid:(NSString *)uuid;

    Swift

    init!(data: Data!, name: String!, uuid: String!)

    Parameters

    data

    binary representation uploaded file

    name

    string representing uploaded file name

    uuid

    string representing file uuid

    Return Value

    an instance of RRUploadFile