Skip to content

Commit e4aae74

Browse files
author
Andrew Longhorn
committed
initial version
0 parents  commit e4aae74

8 files changed

Lines changed: 628 additions & 0 deletions

File tree

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Autosave files
2+
*~
3+
4+
# build
5+
[Oo]bj/
6+
[Bb]in/
7+
packages/
8+
TestResults/
9+
10+
# globs
11+
Makefile.in
12+
*.DS_Store
13+
*.sln.cache
14+
*.suo
15+
*.cache
16+
*.pidb
17+
*.userprefs
18+
*.usertasks
19+
config.log
20+
config.make
21+
config.status
22+
aclocal.m4
23+
install-sh
24+
autom4te.cache/
25+
*.user
26+
*.tar.gz
27+
tarballs/
28+
test-results/
29+
Thumbs.db
30+
.vs/
31+
32+
# Mac bundle stuff
33+
*.dmg
34+
*.app
35+
36+
# resharper
37+
*_Resharper.*
38+
*.Resharper
39+
40+
# dotCover
41+
*.dotCover

Allow2.sln

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Allow2", "Allow2\Allow2.csproj", "{FFE961F4-4FDE-4736-A89D-721EB5C11A97}"
5+
EndProject
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AF0C5566-7FFC-4BDE-A78C-55694F732A0F}"
7+
ProjectSection(SolutionItems) = preProject
8+
LICENSE = LICENSE
9+
EndProjectSection
10+
EndProject
11+
Global
12+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
13+
Debug|Any CPU = Debug|Any CPU
14+
Release|Any CPU = Release|Any CPU
15+
EndGlobalSection
16+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
17+
{FFE961F4-4FDE-4736-A89D-721EB5C11A97}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
18+
{FFE961F4-4FDE-4736-A89D-721EB5C11A97}.Debug|Any CPU.Build.0 = Debug|Any CPU
19+
{FFE961F4-4FDE-4736-A89D-721EB5C11A97}.Release|Any CPU.ActiveCfg = Release|Any CPU
20+
{FFE961F4-4FDE-4736-A89D-721EB5C11A97}.Release|Any CPU.Build.0 = Release|Any CPU
21+
EndGlobalSection
22+
EndGlobal

Allow2/Allow2.cs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System;
2+
using System.Net.Http;
3+
using System.Threading.Tasks;
4+
5+
namespace Allow2
6+
{
7+
public class Connection
8+
{
9+
private static readonly HttpClient client = new HttpClient();
10+
11+
public Connection()
12+
{
13+
}
14+
15+
public async Task<string> test()
16+
{
17+
18+
//var values = new Dictionary<string, string>
19+
// {
20+
// { "thing1", "hello" },
21+
// { "thing2", "world" }
22+
// };
23+
24+
//var content = new FormUrlEncodedContent(values);
25+
26+
//var response = await client.PostAsync("http://api.allow2.com/", content);
27+
28+
//var responseString = await response.Content.ReadAsStringAsync();
29+
30+
var responseString = await client.GetStringAsync("http://api.allow2.com/");
31+
32+
return responseString;
33+
}
34+
}
35+
}

Allow2/Allow2.csproj

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.props" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{FFE961F4-4FDE-4736-A89D-721EB5C11A97}</ProjectGuid>
8+
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
9+
<OutputType>Library</OutputType>
10+
<RootNamespace>Allow2</RootNamespace>
11+
<AssemblyName>Allow2</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<TargetFrameworkProfile>Profile111</TargetFrameworkProfile>
14+
<PackageId>Allow2</PackageId>
15+
<PackageVersion>1.0.0</PackageVersion>
16+
<Authors>andrew</Authors>
17+
<Description>Allow2</Description>
18+
</PropertyGroup>
19+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20+
<DebugSymbols>true</DebugSymbols>
21+
<DebugType>full</DebugType>
22+
<Optimize>false</Optimize>
23+
<OutputPath>bin\Debug</OutputPath>
24+
<DefineConstants>DEBUG;</DefineConstants>
25+
<ErrorReport>prompt</ErrorReport>
26+
<WarningLevel>4</WarningLevel>
27+
</PropertyGroup>
28+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\Release</OutputPath>
31+
<ErrorReport>prompt</ErrorReport>
32+
<WarningLevel>4</WarningLevel>
33+
</PropertyGroup>
34+
<ItemGroup>
35+
<Compile Include="Properties\AssemblyInfo.cs" />
36+
<Compile Include="Allow2.cs" />
37+
</ItemGroup>
38+
<ItemGroup>
39+
<None Include="packages.config" />
40+
<None Include="package.json" />
41+
</ItemGroup>
42+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
43+
<Import Project="..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.targets" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.targets')" />
44+
</Project>

Allow2/Properties/AssemblyInfo.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
4+
// Information about this assembly is defined by the following attributes.
5+
// Change them to the values specific to your project.
6+
7+
[assembly: AssemblyTitle("Allow2")]
8+
[assembly: AssemblyDescription("")]
9+
[assembly: AssemblyConfiguration("")]
10+
[assembly: AssemblyCompany("")]
11+
[assembly: AssemblyProduct("")]
12+
[assembly: AssemblyCopyright("${AuthorCopyright}")]
13+
[assembly: AssemblyTrademark("")]
14+
[assembly: AssemblyCulture("")]
15+
16+
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
17+
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
18+
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
19+
20+
[assembly: AssemblyVersion("1.0.0.0")]
21+
22+
// The following attributes are used to specify the signing key for the assembly,
23+
// if desired. See the Mono documentation for more information about signing.
24+
25+
//[assembly: AssemblyDelaySign(false)]
26+
//[assembly: AssemblyKeyFile("")]

Allow2/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"category": "AssetStore/Unity",
3+
"description": "Allow2 is cool.",
4+
"gitHead": "0d2114387a99011be685886f8ea902242e323e70",
5+
"keywords": [
6+
"allow2",
7+
"unity"
8+
],
9+
"name": "com.allow2.allow2",
10+
"repoPackagePath": "build/install/com.allow2.ads",
11+
"repository": {
12+
"type": "git",
13+
"url": "ssh://git@github.com/Unity-Technologies/com.unity.ads.git"
14+
},
15+
"unity": "2017.4",
16+
"version": "1.0.0"
17+
}

Allow2/packages.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="NuGet.Build.Packaging" version="0.2.0" targetFramework="portable45-net45+win8+wpa81" developmentDependency="true" />
4+
</packages>

0 commit comments

Comments
 (0)