Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit e60f74c

Browse files
authored
Merge pull request #28 from microsoftgraph/iambmelt/work
Excel + Bugfixes (v1.1.0)
2 parents bb0fa60 + db2752b commit e60f74c

File tree

5,743 files changed

+249879
-2037
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,743 files changed

+249879
-2037
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Get started with the Microsoft Graph SDK for Android
22

3-
[ ![Download](https://api.bintray.com/packages/microsoftgraph/Maven/msgraph-sdk-android/images/download.svg) ](https://bintray.com/microsoftgraph/Maven/msgraph-sdk-android/_latestVersion)[![Build Status](https://travis-ci.org/microsoftgraph/msgraph-sdk-android.svg?branch=master)](https://travis-ci.org/microsoftgraph/msgraph-sdk-android)
3+
[ ![Download](https://api.bintray.com/packages/microsoftgraph/Maven/msgraph-sdk-android/images/download.svg) ](https://bintray.com/microsoftgraph/Maven/msgraph-sdk-android/_latestVersion)
44

55
Integrate the [Microsoft Graph API](https://graph.microsoft.io/en-us/getting-started) into your Android application!
66

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ mavenRepoUrl = https://api.bintray.com/maven/microsoftgraph/Maven/msgrap
2222
mavenGroupId = com.microsoft.graph
2323
mavenArtifactId = msgraph-sdk-android
2424
mavenMajorVersion = 1
25-
mavenMinorVersion = 0
25+
mavenMinorVersion = 1
2626
mavenPatchVersion = 0
2727
nightliesUrl = http://dl.bintray.com/MicrosoftGraph/Maven

graphsdk/src/androidTest/java/com/microsoft/graph/serializer/DefaultSerializerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void testRecurrenceRangeDeserialization() throws Exception {
7070
}
7171

7272
public void testRecurrenceRangeSerialization() throws Exception {
73-
final String expected = "{\"endDate\":\"2016-05-25\",\"numberOfOccurrences\":4,\"@odata.type\":\"microsoft.graph.recurrenceRange\",\"recurrenceTimeZone\":\"PST\",\"startDate\":\"2016-04-25\",\"type\":\"endDate\"}";
73+
final String expected = "{\"endDate\":\"2016-05-25\",\"numberOfOccurrences\":4,\"recurrenceTimeZone\":\"PST\",\"startDate\":\"2016-04-25\",\"type\":\"endDate\"}";
7474
final DefaultSerializer serializer = new DefaultSerializer(new DefaultLogger());
7575
BaseRecurrenceRange brr = new BaseRecurrenceRange();
7676
brr.type = RecurrenceRangeType.endDate;

graphsdk/src/main/java/com/microsoft/graph/core/BasePostMethodRequestBuilder.java renamed to graphsdk/src/main/java/com/microsoft/graph/core/BaseActionRequestBuilder.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@
1414
/**
1515
* The base method request builder class used for POST actions.
1616
*/
17-
public class BasePostMethodRequestBuilder extends BaseRequestBuilder {
17+
public class BaseActionRequestBuilder extends BaseRequestBuilder {
1818

1919
/**
2020
* The body params to add to this request
2121
*/
2222
protected Map<String, Object> mBodyParams = new HashMap<>();
2323

2424
/**
25-
* Constructs a new {@link BasePostMethodRequestBuilder}
25+
* Constructs a new {@link BaseActionRequestBuilder}
2626
*
2727
* @param requestUrl the URL for the request
2828
* @param client the {@link IBaseClient} for handling requests
2929
* @param options {@link List} of {@link Option}s to add to this request
3030
*/
31-
public BasePostMethodRequestBuilder(
32-
String requestUrl,
33-
IBaseClient client,
34-
List<Option> options
31+
public BaseActionRequestBuilder(
32+
final String requestUrl,
33+
final IBaseClient client,
34+
final List<Option> options
3535
) {
3636
super(requestUrl, client, options);
3737
}
@@ -40,9 +40,9 @@ public BasePostMethodRequestBuilder(
4040
* Checks if the parameter map contains a object accessible by the supplied key
4141
*
4242
* @param name The key used to access the stored body param
43-
* @return true, if {@link BasePostMethodRequestBuilder#mBodyParams} contains the key, otherwise false
43+
* @return true, if {@link BaseActionRequestBuilder#mBodyParams} contains the key, otherwise false
4444
*/
45-
protected boolean hasParameter(String name) {
45+
protected boolean hasParameter(final String name) {
4646
return mBodyParams.containsKey(name);
4747
}
4848

@@ -53,7 +53,7 @@ protected boolean hasParameter(String name) {
5353
* @param <T> The type to which this object should be cast
5454
* @return The stored instance of T, otherwise null
5555
*/
56-
protected <T> T getParameter(String name) {
56+
protected <T> T getParameter(final String name) {
5757
return (T) mBodyParams.get(name);
5858
}
5959
}

graphsdk/src/main/java/com/microsoft/graph/core/BaseGetMethodRequestBuilder.java renamed to graphsdk/src/main/java/com/microsoft/graph/core/BaseFunctionRequestBuilder.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@
1414
/**
1515
* The base method request builder class.
1616
*/
17-
public class BaseGetMethodRequestBuilder extends BaseRequestBuilder {
17+
public class BaseFunctionRequestBuilder extends BaseRequestBuilder {
1818

1919
/**
2020
* The {@link FunctionOption}s to add to this request
2121
*/
2222
protected List<FunctionOption> mFunctionOptions = new ArrayList<>();
2323

2424
/**
25-
* Constructs a new {@link BaseGetMethodRequestBuilder}
25+
* Constructs a new {@link BaseFunctionRequestBuilder}
2626
*
2727
* @param requestUrl the URL for the request
2828
* @param client the {@link IBaseClient} for handling requests
2929
* @param options {@link List} of {@link Option}s to add to this request
3030
*/
31-
public BaseGetMethodRequestBuilder(
32-
String requestUrl,
33-
IBaseClient client,
34-
List<Option> options
31+
public BaseFunctionRequestBuilder(
32+
final String requestUrl,
33+
final IBaseClient client,
34+
final List<Option> options
3535
) {
3636
super(requestUrl, client, options);
3737
}

graphsdk/src/main/java/com/microsoft/graph/core/DefaultClientConfig.java

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
package com.microsoft.graph.core;
2424

2525
import com.microsoft.graph.authentication.IAuthenticationProvider;
26+
import com.microsoft.graph.concurrency.DefaultExecutors;
2627
import com.microsoft.graph.concurrency.IExecutors;
2728
import com.microsoft.graph.http.DefaultHttpProvider;
28-
import com.microsoft.graph.logger.DefaultLogger;
29-
import com.microsoft.graph.concurrency.DefaultExecutors;
3029
import com.microsoft.graph.http.IHttpProvider;
30+
import com.microsoft.graph.logger.DefaultLogger;
3131
import com.microsoft.graph.logger.ILogger;
3232
import com.microsoft.graph.serializer.DefaultSerializer;
3333
import com.microsoft.graph.serializer.ISerializer;
@@ -64,18 +64,30 @@ public abstract class DefaultClientConfig implements IClientConfig {
6464

6565
/**
6666
* Creates an instance of this config with an auth provider.
67+
*
6768
* @param authenticationProvider The authentication provider.
6869
* @return The IClientConfig.
6970
*/
70-
public static IClientConfig createWithAuthenticationProvider(final IAuthenticationProvider authenticationProvider) {
71-
DefaultClientConfig config = new DefaultClientConfig() { };
71+
public static IClientConfig createWithAuthenticationProvider(
72+
final IAuthenticationProvider authenticationProvider
73+
) {
74+
DefaultClientConfig config = new DefaultClientConfig() {
75+
};
7276
config.mAuthenticationProvider = authenticationProvider;
73-
config.getLogger().logDebug("Using provided auth provider " + authenticationProvider.getClass().getSimpleName());
77+
config
78+
.getLogger()
79+
.logDebug(
80+
"Using provided auth provider "
81+
+ authenticationProvider
82+
.getClass()
83+
.getSimpleName()
84+
);
7485
return config;
7586
}
7687

7788
/**
7889
* Gets the authentication provider.
90+
*
7991
* @return The authentication provider.
8092
*/
8193
@Override
@@ -85,22 +97,24 @@ public IAuthenticationProvider getAuthenticationProvider() {
8597

8698
/**
8799
* Gets the http provider.
100+
*
88101
* @return The http provider.
89102
*/
90103
@Override
91104
public IHttpProvider getHttpProvider() {
92105
if (mHttpProvider == null) {
93106
mHttpProvider = new DefaultHttpProvider(getSerializer(),
94-
getAuthenticationProvider(),
95-
getExecutors(),
96-
getLogger());
107+
getAuthenticationProvider(),
108+
getExecutors(),
109+
getLogger());
97110
mLogger.logDebug("Created DefaultHttpProvider");
98111
}
99112
return mHttpProvider;
100113
}
101114

102115
/**
103116
* Gets the serializer.
117+
*
104118
* @return The serializer.
105119
*/
106120
@Override
@@ -114,6 +128,7 @@ public ISerializer getSerializer() {
114128

115129
/**
116130
* Gets the executors.
131+
*
117132
* @return The executors.
118133
*/
119134
@Override
@@ -127,6 +142,7 @@ public IExecutors getExecutors() {
127142

128143
/**
129144
* Gets the logger.
145+
*
130146
* @return The logger.
131147
*/
132148
public ILogger getLogger() {

graphsdk/src/main/java/com/microsoft/graph/extensions/AttachmentCollectionRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public class AttachmentCollectionRequest extends BaseAttachmentCollectionRequest
2727
*
2828
* @param requestUrl The request url
2929
* @param client The service client
30-
* @param options The options for this request
30+
* @param requestOptions The options for this request
3131
*/
32-
public AttachmentCollectionRequest(final String requestUrl, final IBaseClient client, final List<Option> options) {
33-
super(requestUrl, client, options);
32+
public AttachmentCollectionRequest(final String requestUrl, final IBaseClient client, final List<Option> requestOptions) {
33+
super(requestUrl, client, requestOptions);
3434
}
3535
}

graphsdk/src/main/java/com/microsoft/graph/extensions/AttachmentCollectionRequestBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public class AttachmentCollectionRequestBuilder extends BaseAttachmentCollection
2727
*
2828
* @param requestUrl The request url
2929
* @param client The service client
30-
* @param options The options for this request
30+
* @param requestOptions The options for this request
3131
*/
32-
public AttachmentCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final List<Option> options) {
33-
super(requestUrl, client, options);
32+
public AttachmentCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final List<Option> requestOptions) {
33+
super(requestUrl, client, requestOptions);
3434
}
3535
}

graphsdk/src/main/java/com/microsoft/graph/extensions/AttachmentRequest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@ public class AttachmentRequest extends BaseAttachmentRequest implements IAttachm
2727
*
2828
* @param requestUrl The request url
2929
* @param client The service client
30-
* @param options The options for this request
30+
* @param requestOptions The options for this request
3131
* @param responseClass The class of the reponse
3232
*/
3333
public AttachmentRequest(final String requestUrl,
3434
final IBaseClient client,
35-
final List<Option> options,
35+
final List<Option> requestOptions,
3636
final Class responseClass) {
37-
super(requestUrl, client, options, responseClass);
37+
super(requestUrl, client, requestOptions, responseClass);
3838
}
3939

4040
/**
4141
* The request for the Attachment
4242
*
4343
* @param requestUrl The request url
4444
* @param client The service client
45-
* @param options The options for this request
45+
* @param requestOptions The options for this request
4646
*/
47-
public AttachmentRequest(final String requestUrl, final IBaseClient client, final List<Option> options) {
48-
super(requestUrl, client, options, Attachment.class);
47+
public AttachmentRequest(final String requestUrl, final IBaseClient client, final List<Option> requestOptions) {
48+
super(requestUrl, client, requestOptions, Attachment.class);
4949
}
5050
}

graphsdk/src/main/java/com/microsoft/graph/extensions/AttachmentRequestBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public class AttachmentRequestBuilder extends BaseAttachmentRequestBuilder imple
2727
*
2828
* @param requestUrl The request url
2929
* @param client The service client
30-
* @param options The options for this request
30+
* @param requestOptions The options for this request
3131
*/
32-
public AttachmentRequestBuilder(final String requestUrl, final IBaseClient client, final List<Option> options) {
33-
super(requestUrl, client, options);
32+
public AttachmentRequestBuilder(final String requestUrl, final IBaseClient client, final List<Option> requestOptions) {
33+
super(requestUrl, client, requestOptions);
3434
}
3535
}

0 commit comments

Comments
 (0)