Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

US374082 : [iOS] MAS network enhancement with tasks and RequestBuilde…#84

Merged
jhoongo merged 6 commits intodevelopfrom
US374082-RequestBuilder
Oct 17, 2017
Merged

US374082 : [iOS] MAS network enhancement with tasks and RequestBuilde…#84
jhoongo merged 6 commits intodevelopfrom
US374082-RequestBuilder

Conversation

@rodrigoareis
Copy link
Copy Markdown
Contributor

…r Interface to align with Android

#import "MASRequestBuilder.h"

/**
MASRequest class is an object created by MASRequestBuilder. It's contains all parameters necessary to invoke an API.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MASRequest class is an object created by MASRequestBuilder. It contains all necessary information to invoke an API.

@property (nonatomic, strong, readonly) NSString *httpMethod;

/**
BOOL value that determines whether or not the target host is a primary gateway or another gateway/public server.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BOOL value that determines whether or not to include credentials of primary gateway in the request.


/**
Initialize MASRequest using MASRequestBuilder block and defining the request method as a HTTP DELETE call. This type of HTTP Method type
places it's parameters within the NSURL itself as an HTTP query extension.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its parameters


/**
Initialize MASRequest using MASRequestBuilder block and defining the request method as a HTTP GET call. This type of HTTP Method type
places it's parameters within the NSURL itself as an HTTP query extension.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its parameters


/**
Initialize MASRequest using MASRequestBuilder block and defining the request method as a HTTP PATCH call. This type of HTTP Method type
places it's parameters within the HTTP body in www-form-url-encoded format.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its parameters


/**
Initialize MASRequest using MASRequestBuilder block and defining the request method as a HTTP POST call. This type of HTTP Method type
places it's parameters within the HTTP body in www-form-url-encoded format.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its parameters


/**
Initialize MASRequest using MASRequestBuilder block and defining the request method as a HTTP PUT call. This type of HTTP Method type
places it's parameters within the HTTP body in www-form-url-encoded format.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its parameters


/**
MASRequestBuilder class is an object that allows developers to progressively build a request as needed.
The class is mainly responsible for receive parameters and create a MASRequest object.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to receive parameters and create a MASRequest object.

@property (nonatomic, strong, readonly) NSString *httpMethod;

/**
BOOL value that determines whether or not the target host is a primary gateway or another gateway/public server.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BOOL value that determines whether or not to include credentials of primary gateway in the request.

jhoongo
jhoongo previously approved these changes Sep 7, 2017
Copy link
Copy Markdown
Contributor

@jhoongo jhoongo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Rodrigo Reis added 2 commits October 16, 2017 17:33
Copy link
Copy Markdown
Contributor

@jhoongo jhoongo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@jhoongo jhoongo merged commit 9cc818f into develop Oct 17, 2017
@jhoongo jhoongo deleted the US374082-RequestBuilder branch October 17, 2017 17:11
@jhoongo jhoongo restored the US374082-RequestBuilder branch October 17, 2017 17:24
jhoongo pushed a commit that referenced this pull request Oct 17, 2017
Merge pull request #84 from CAAPIM/US374082-RequestBuilder
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants