forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplicationLogoStreamRequest.java
More file actions
76 lines (66 loc) · 2.72 KB
/
Copy pathApplicationLogoStreamRequest.java
File metadata and controls
76 lines (66 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Template Source: BaseStreamRequest.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.requests.extensions;
import com.microsoft.graph.http.IRequestBuilder;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.concurrency.ICallback;
import com.microsoft.graph.models.extensions.Application;
import java.util.Arrays;
import java.util.EnumSet;
import com.microsoft.graph.core.IBaseClient;
import com.microsoft.graph.http.BaseStreamRequest;
import java.io.InputStream;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Application Logo Stream Request.
*/
public class ApplicationLogoStreamRequest extends BaseStreamRequest<Application> implements IApplicationLogoStreamRequest {
/**
* The request for the ApplicationLogoStream
*
* @param requestUrl the request URL
* @param client the service client
* @param requestOptions the options for this request
*/
public ApplicationLogoStreamRequest(final String requestUrl, final IBaseClient client, final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
super(requestUrl, client, requestOptions, Application.class);
}
/**
* Gets the contents of this stream
*
* @param callback the callback to be called after success or failure
*/
public void get(final ICallback<InputStream> callback) {
send(callback);
}
/**
* Gets the contents of this stream
*
* @return the stream that the caller needs to close
* @throws ClientException an exception occurs if there was an error while the request was sent
*/
public InputStream get() throws ClientException {
return send();
}
/**
* Uploads to the stream
*
* @param fileContents the contents of the stream to upload
* @param callback the callback to be called after success or failure
*/
public void put(final byte[] fileContents, final ICallback<? super Application> callback) {
send(fileContents, callback);
}
/**
* Uploads to the stream
*
* @param fileContents the contents of the stream to upload
* @return the result of the upload
* @throws ClientException an exception occurs if there was an error while the request was sent
*/
public Application put(final byte[] fileContents) throws ClientException {
return send(fileContents);
}
}