Skip to content

Commit 6b536d1

Browse files
committed
feat: add model for file with metadata
1 parent 06abd1d commit 6b536d1

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

Model/FileWithMetadata.cs

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/**
2+
* Copyright 2019 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
namespace IBM.Cloud.SDK.Model
19+
{
20+
/// <summary>
21+
/// A file and its associated metadata.
22+
/// </summary>
23+
public class FileWithMetadata
24+
{
25+
/// <summary>
26+
/// The file data
27+
/// </summary>
28+
public System.IO.MemoryStream Data { get; set; }
29+
30+
/// <summary>
31+
/// The filename
32+
/// </summary>
33+
public string Filename { get; set; }
34+
35+
/// <summary>
36+
/// The file contentType
37+
/// </summary>
38+
public string ContentType { get; set; }
39+
}
40+
}

Model/FileWithMetadata.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)