Skip to content

Commit d353fa5

Browse files
committed
Add ContentStream property to ApiResponse
1 parent 2f70572 commit d353fa5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ApiResponse`1.mustache

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ namespace {{packageName}}.{{clientPackage}}
3333
/// The raw content of this response.
3434
/// </summary>
3535
string RawContent { get; }
36+
37+
/// <summary>
38+
/// The raw binary stream (only set for binary responses)
39+
/// </summary>
40+
public System.IO.Stream? ContentStream { get; }
3641

3742
/// <summary>
3843
/// The DateTime when the request was retrieved.
@@ -81,6 +86,11 @@ namespace {{packageName}}.{{clientPackage}}
8186
/// </summary>
8287
public string RawContent { get; protected set; }
8388

89+
/// <summary>
90+
/// The raw binary stream (only set for binary responses)
91+
/// </summary>
92+
public System.IO.Stream? ContentStream { get; protected set; }
93+
8494
/// <summary>
8595
/// The IsSuccessStatusCode from the api response
8696
/// </summary>

0 commit comments

Comments
 (0)