-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Uralstech/unstable
UGemini v1.1.1
- Loading branch information
Showing
10 changed files
with
424 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...com.uralstech.ugemini/Runtime/Scripts/Data/FileAPI/FileUpload/GeminiFileUploadMetaData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Serialization; | ||
using System.ComponentModel; | ||
|
||
namespace Uralstech.UGemini.FileAPI | ||
{ | ||
/// <summary> | ||
/// Metadata for a <see cref="GeminiFile"/> to be uploaded. | ||
/// </summary> | ||
[JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))] | ||
public class GeminiFileUploadMetaData | ||
{ | ||
/// <summary> | ||
/// The <see cref="GeminiFileUploadRequest"/> resource name. This does not work right now. | ||
/// </summary> | ||
/// <remarks> | ||
/// The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-).<br/> | ||
/// The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: files/123-456 | ||
/// </remarks> | ||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore), DefaultValue(null)] | ||
public string Name = null; | ||
|
||
/// <summary> | ||
/// The human-readable display name for the <see cref="GeminiFileUploadRequest"/>. The display name must be no more than 512 characters in length, including spaces. Example: "Welcome Image" | ||
/// </summary> | ||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore), DefaultValue(null)] | ||
public string DisplayName = null; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ralstech.ugemini/Runtime/Scripts/Data/FileAPI/FileUpload/GeminiFileUploadMetaData.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
UGemini/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/IGeminiMultiPartPostRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace Uralstech.UGemini | ||
{ | ||
/// <summary> | ||
/// All Gemini API POST requests with multi-part data must inherit from this interface. | ||
/// </summary> | ||
public interface IGeminiMultiPartPostRequest : IGeminiRequest | ||
{ | ||
/// <summary> | ||
/// Converts the request object to a UTF-8 encoded multi-part <see cref="string"/>. | ||
/// </summary> | ||
/// <param name="dataSeperator">The boundary to seperate each part of the data.</param> | ||
/// <returns>The string data.</returns> | ||
public string GetUtf8EncodedData(string dataSeperator); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...i/Packages/com.uralstech.ugemini/Runtime/Scripts/Data/IGeminiMultiPartPostRequest.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.