adding in some needed packages
This commit is contained in:
parent
9e739f5dc8
commit
aba5310742
1012 changed files with 494191 additions and 1 deletions
23
Assets/LeaderboardCreator/Scripts/Utils/Requests.cs
Executable file
23
Assets/LeaderboardCreator/Scripts/Utils/Requests.cs
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEngine.Networking;
|
||||
|
||||
namespace Dan
|
||||
{
|
||||
internal static partial class Requests
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a form section and adds the parameters to it.
|
||||
/// </summary>
|
||||
/// <returns>IMultipartFormSection object</returns>
|
||||
public static IMultipartFormSection Field(string fieldName, string data) =>
|
||||
new MultipartFormDataSection(fieldName, data);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a form out of the given parameters.
|
||||
/// </summary>
|
||||
/// <param name="formDataSections"></param>
|
||||
/// <returns>A list of IMultipartFormSection objects</returns>
|
||||
public static List<IMultipartFormSection> Form(params IMultipartFormSection[] formDataSections) =>
|
||||
new List<IMultipartFormSection>(formDataSections);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue