Skip to content

Commit a5428d6

Browse files
authored
Merge pull request #498 from microsoftgraph/feature/super-callbacks
feature/super callbacks
2 parents cd580a4 + be4e082 commit a5428d6

File tree

2,752 files changed

+7038
-7038
lines changed

Some content is hidden

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

2,752 files changed

+7038
-7038
lines changed

src/main/java/com/microsoft/graph/callrecords/requests/extensions/CallRecordCollectionRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public CallRecordCollectionRequest(final String requestUrl, IBaseClient client,
4040
super(requestUrl, client, requestOptions, CallRecordCollectionResponse.class, ICallRecordCollectionPage.class);
4141
}
4242

43-
public void get(final ICallback<ICallRecordCollectionPage> callback) {
43+
public void get(final ICallback<? super ICallRecordCollectionPage> callback) {
4444
final IExecutors executors = getBaseRequest().getClient().getExecutors();
4545
executors.performOnBackground(new Runnable() {
4646
@Override
@@ -59,7 +59,7 @@ public ICallRecordCollectionPage get() throws ClientException {
5959
return buildFromResponse(response);
6060
}
6161

62-
public void post(final CallRecord newCallRecord, final ICallback<CallRecord> callback) {
62+
public void post(final CallRecord newCallRecord, final ICallback<? super CallRecord> callback) {
6363
final String requestUrl = getBaseRequest().getRequestUrl().toString();
6464
new CallRecordRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null)
6565
.buildRequest(getBaseRequest().getHeaders())

src/main/java/com/microsoft/graph/callrecords/requests/extensions/CallRecordRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public CallRecordRequest(final String requestUrl, final IBaseClient client, fina
4141
*
4242
* @param callback the callback to be called after success or failure
4343
*/
44-
public void get(final ICallback<CallRecord> callback) {
44+
public void get(final ICallback<? super CallRecord> callback) {
4545
send(HttpMethod.GET, callback, null);
4646
}
4747

@@ -60,7 +60,7 @@ public CallRecord get() throws ClientException {
6060
*
6161
* @param callback the callback when the deletion action has completed
6262
*/
63-
public void delete(final ICallback<CallRecord> callback) {
63+
public void delete(final ICallback<? super CallRecord> callback) {
6464
send(HttpMethod.DELETE, callback, null);
6565
}
6666

@@ -79,7 +79,7 @@ public void delete() throws ClientException {
7979
* @param sourceCallRecord the source object with updates
8080
* @param callback the callback to be called after success or failure
8181
*/
82-
public void patch(final CallRecord sourceCallRecord, final ICallback<CallRecord> callback) {
82+
public void patch(final CallRecord sourceCallRecord, final ICallback<? super CallRecord> callback) {
8383
send(HttpMethod.PATCH, callback, sourceCallRecord);
8484
}
8585

@@ -100,7 +100,7 @@ public CallRecord patch(final CallRecord sourceCallRecord) throws ClientExceptio
100100
* @param newCallRecord the new object to create
101101
* @param callback the callback to be called after success or failure
102102
*/
103-
public void post(final CallRecord newCallRecord, final ICallback<CallRecord> callback) {
103+
public void post(final CallRecord newCallRecord, final ICallback<? super CallRecord> callback) {
104104
send(HttpMethod.POST, callback, newCallRecord);
105105
}
106106

@@ -121,7 +121,7 @@ public CallRecord post(final CallRecord newCallRecord) throws ClientException {
121121
* @param newCallRecord the object to create/update
122122
* @param callback the callback to be called after success or failure
123123
*/
124-
public void put(final CallRecord newCallRecord, final ICallback<CallRecord> callback) {
124+
public void put(final CallRecord newCallRecord, final ICallback<? super CallRecord> callback) {
125125
send(HttpMethod.PUT, callback, newCallRecord);
126126
}
127127

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ICallRecordCollectionRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
*/
2323
public interface ICallRecordCollectionRequest extends IHttpRequest {
2424

25-
void get(final ICallback<ICallRecordCollectionPage> callback);
25+
void get(final ICallback<? super ICallRecordCollectionPage> callback);
2626

2727
ICallRecordCollectionPage get() throws ClientException;
2828

29-
void post(final CallRecord newCallRecord, final ICallback<CallRecord> callback);
29+
void post(final CallRecord newCallRecord, final ICallback<? super CallRecord> callback);
3030

3131
CallRecord post(final CallRecord newCallRecord) throws ClientException;
3232

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ICallRecordRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface ICallRecordRequest extends IHttpRequest {
2121
*
2222
* @param callback the callback to be called after success or failure
2323
*/
24-
void get(final ICallback<CallRecord> callback);
24+
void get(final ICallback<? super CallRecord> callback);
2525

2626
/**
2727
* Gets the CallRecord from the service
@@ -36,7 +36,7 @@ public interface ICallRecordRequest extends IHttpRequest {
3636
*
3737
* @param callback the callback when the deletion action has completed
3838
*/
39-
void delete(final ICallback<CallRecord> callback);
39+
void delete(final ICallback<? super CallRecord> callback);
4040

4141
/**
4242
* Delete this item from the service
@@ -51,7 +51,7 @@ public interface ICallRecordRequest extends IHttpRequest {
5151
* @param sourceCallRecord the source object with updates
5252
* @param callback the callback to be called after success or failure
5353
*/
54-
void patch(final CallRecord sourceCallRecord, final ICallback<CallRecord> callback);
54+
void patch(final CallRecord sourceCallRecord, final ICallback<? super CallRecord> callback);
5555

5656
/**
5757
* Patches this CallRecord with a source
@@ -68,7 +68,7 @@ public interface ICallRecordRequest extends IHttpRequest {
6868
* @param newCallRecord the new object to create
6969
* @param callback the callback to be called after success or failure
7070
*/
71-
void post(final CallRecord newCallRecord, final ICallback<CallRecord> callback);
71+
void post(final CallRecord newCallRecord, final ICallback<? super CallRecord> callback);
7272

7373
/**
7474
* Posts a CallRecord with a new object
@@ -85,7 +85,7 @@ public interface ICallRecordRequest extends IHttpRequest {
8585
* @param newCallRecord the object to create/update
8686
* @param callback the callback to be called after success or failure
8787
*/
88-
void put(final CallRecord newCallRecord, final ICallback<CallRecord> callback);
88+
void put(final CallRecord newCallRecord, final ICallback<? super CallRecord> callback);
8989

9090
/**
9191
* Posts a CallRecord with a new object

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ISegmentCollectionRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
*/
2323
public interface ISegmentCollectionRequest extends IHttpRequest {
2424

25-
void get(final ICallback<ISegmentCollectionPage> callback);
25+
void get(final ICallback<? super ISegmentCollectionPage> callback);
2626

2727
ISegmentCollectionPage get() throws ClientException;
2828

29-
void post(final Segment newSegment, final ICallback<Segment> callback);
29+
void post(final Segment newSegment, final ICallback<? super Segment> callback);
3030

3131
Segment post(final Segment newSegment) throws ClientException;
3232

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ISegmentRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface ISegmentRequest extends IHttpRequest {
2121
*
2222
* @param callback the callback to be called after success or failure
2323
*/
24-
void get(final ICallback<Segment> callback);
24+
void get(final ICallback<? super Segment> callback);
2525

2626
/**
2727
* Gets the Segment from the service
@@ -36,7 +36,7 @@ public interface ISegmentRequest extends IHttpRequest {
3636
*
3737
* @param callback the callback when the deletion action has completed
3838
*/
39-
void delete(final ICallback<Segment> callback);
39+
void delete(final ICallback<? super Segment> callback);
4040

4141
/**
4242
* Delete this item from the service
@@ -51,7 +51,7 @@ public interface ISegmentRequest extends IHttpRequest {
5151
* @param sourceSegment the source object with updates
5252
* @param callback the callback to be called after success or failure
5353
*/
54-
void patch(final Segment sourceSegment, final ICallback<Segment> callback);
54+
void patch(final Segment sourceSegment, final ICallback<? super Segment> callback);
5555

5656
/**
5757
* Patches this Segment with a source
@@ -68,7 +68,7 @@ public interface ISegmentRequest extends IHttpRequest {
6868
* @param newSegment the new object to create
6969
* @param callback the callback to be called after success or failure
7070
*/
71-
void post(final Segment newSegment, final ICallback<Segment> callback);
71+
void post(final Segment newSegment, final ICallback<? super Segment> callback);
7272

7373
/**
7474
* Posts a Segment with a new object
@@ -85,7 +85,7 @@ public interface ISegmentRequest extends IHttpRequest {
8585
* @param newSegment the object to create/update
8686
* @param callback the callback to be called after success or failure
8787
*/
88-
void put(final Segment newSegment, final ICallback<Segment> callback);
88+
void put(final Segment newSegment, final ICallback<? super Segment> callback);
8989

9090
/**
9191
* Posts a Segment with a new object

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ISessionCollectionRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
*/
2323
public interface ISessionCollectionRequest extends IHttpRequest {
2424

25-
void get(final ICallback<ISessionCollectionPage> callback);
25+
void get(final ICallback<? super ISessionCollectionPage> callback);
2626

2727
ISessionCollectionPage get() throws ClientException;
2828

29-
void post(final Session newSession, final ICallback<Session> callback);
29+
void post(final Session newSession, final ICallback<? super Session> callback);
3030

3131
Session post(final Session newSession) throws ClientException;
3232

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ISessionRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface ISessionRequest extends IHttpRequest {
2121
*
2222
* @param callback the callback to be called after success or failure
2323
*/
24-
void get(final ICallback<Session> callback);
24+
void get(final ICallback<? super Session> callback);
2525

2626
/**
2727
* Gets the Session from the service
@@ -36,7 +36,7 @@ public interface ISessionRequest extends IHttpRequest {
3636
*
3737
* @param callback the callback when the deletion action has completed
3838
*/
39-
void delete(final ICallback<Session> callback);
39+
void delete(final ICallback<? super Session> callback);
4040

4141
/**
4242
* Delete this item from the service
@@ -51,7 +51,7 @@ public interface ISessionRequest extends IHttpRequest {
5151
* @param sourceSession the source object with updates
5252
* @param callback the callback to be called after success or failure
5353
*/
54-
void patch(final Session sourceSession, final ICallback<Session> callback);
54+
void patch(final Session sourceSession, final ICallback<? super Session> callback);
5555

5656
/**
5757
* Patches this Session with a source
@@ -68,7 +68,7 @@ public interface ISessionRequest extends IHttpRequest {
6868
* @param newSession the new object to create
6969
* @param callback the callback to be called after success or failure
7070
*/
71-
void post(final Session newSession, final ICallback<Session> callback);
71+
void post(final Session newSession, final ICallback<? super Session> callback);
7272

7373
/**
7474
* Posts a Session with a new object
@@ -85,7 +85,7 @@ public interface ISessionRequest extends IHttpRequest {
8585
* @param newSession the object to create/update
8686
* @param callback the callback to be called after success or failure
8787
*/
88-
void put(final Session newSession, final ICallback<Session> callback);
88+
void put(final Session newSession, final ICallback<? super Session> callback);
8989

9090
/**
9191
* Posts a Session with a new object

src/main/java/com/microsoft/graph/callrecords/requests/extensions/SegmentCollectionRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public SegmentCollectionRequest(final String requestUrl, IBaseClient client, fin
4040
super(requestUrl, client, requestOptions, SegmentCollectionResponse.class, ISegmentCollectionPage.class);
4141
}
4242

43-
public void get(final ICallback<ISegmentCollectionPage> callback) {
43+
public void get(final ICallback<? super ISegmentCollectionPage> callback) {
4444
final IExecutors executors = getBaseRequest().getClient().getExecutors();
4545
executors.performOnBackground(new Runnable() {
4646
@Override
@@ -59,7 +59,7 @@ public ISegmentCollectionPage get() throws ClientException {
5959
return buildFromResponse(response);
6060
}
6161

62-
public void post(final Segment newSegment, final ICallback<Segment> callback) {
62+
public void post(final Segment newSegment, final ICallback<? super Segment> callback) {
6363
final String requestUrl = getBaseRequest().getRequestUrl().toString();
6464
new SegmentRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null)
6565
.buildRequest(getBaseRequest().getHeaders())

src/main/java/com/microsoft/graph/callrecords/requests/extensions/SegmentRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public SegmentRequest(final String requestUrl, final IBaseClient client, final j
3737
*
3838
* @param callback the callback to be called after success or failure
3939
*/
40-
public void get(final ICallback<Segment> callback) {
40+
public void get(final ICallback<? super Segment> callback) {
4141
send(HttpMethod.GET, callback, null);
4242
}
4343

@@ -56,7 +56,7 @@ public Segment get() throws ClientException {
5656
*
5757
* @param callback the callback when the deletion action has completed
5858
*/
59-
public void delete(final ICallback<Segment> callback) {
59+
public void delete(final ICallback<? super Segment> callback) {
6060
send(HttpMethod.DELETE, callback, null);
6161
}
6262

@@ -75,7 +75,7 @@ public void delete() throws ClientException {
7575
* @param sourceSegment the source object with updates
7676
* @param callback the callback to be called after success or failure
7777
*/
78-
public void patch(final Segment sourceSegment, final ICallback<Segment> callback) {
78+
public void patch(final Segment sourceSegment, final ICallback<? super Segment> callback) {
7979
send(HttpMethod.PATCH, callback, sourceSegment);
8080
}
8181

@@ -96,7 +96,7 @@ public Segment patch(final Segment sourceSegment) throws ClientException {
9696
* @param newSegment the new object to create
9797
* @param callback the callback to be called after success or failure
9898
*/
99-
public void post(final Segment newSegment, final ICallback<Segment> callback) {
99+
public void post(final Segment newSegment, final ICallback<? super Segment> callback) {
100100
send(HttpMethod.POST, callback, newSegment);
101101
}
102102

@@ -117,7 +117,7 @@ public Segment post(final Segment newSegment) throws ClientException {
117117
* @param newSegment the object to create/update
118118
* @param callback the callback to be called after success or failure
119119
*/
120-
public void put(final Segment newSegment, final ICallback<Segment> callback) {
120+
public void put(final Segment newSegment, final ICallback<? super Segment> callback) {
121121
send(HttpMethod.PUT, callback, newSegment);
122122
}
123123

0 commit comments

Comments
 (0)