Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add/Move files to make the Twilio Api Monodroid project compile

  • Loading branch information...
commit 94823a19abd9b9732581f1901183c4ed1c4f3ccb 1 parent e8d4c18
@fbrubacher fbrubacher authored
View
BIN  src/Twilio.Api.MonoDroid/.nuget/NuGet.exe
Binary file not shown
View
150 src/Twilio.Api.MonoDroid/.nuget/NuGet.targets
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
+
+ <!-- Enable the restore command to run before builds -->
+ <RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
+
+ <!-- Property that enables building a package from a project -->
+ <BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
+
+ <!-- Determines if package restore consent is required to restore packages -->
+ <RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
+
+ <!-- Download NuGet.exe if it does not already exist -->
+ <DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
+ </PropertyGroup>
+
+ <ItemGroup Condition=" '$(PackageSources)' == '' ">
+ <!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
+ <!--
+ <PackageSource Include="https://nuget.org/api/v2/" />
+ <PackageSource Include="https://my-nuget-source/nuget/" />
+ -->
+ </ItemGroup>
+
+ <PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
+ <!-- Windows specific commands -->
+ <NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
+ <PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
+ <!-- We need to launch nuget.exe with the mono command if we're not on windows -->
+ <NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
+ <PackagesConfig>packages.config</PackagesConfig>
+ </PropertyGroup>
+
+ <PropertyGroup>
+ <!-- NuGet command -->
+ <NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\nuget.exe</NuGetExePath>
+ <PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
+
+ <NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
+ <NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
+
+ <PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
+
+ <RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
+ <!-- Commands -->
+ <RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -solutionDir "$(SolutionDir) "</RestoreCommand>
+ <BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
+
+ <!-- We need to ensure packages are restored prior to assembly resolve -->
+ <ResolveReferencesDependsOn Condition="$(RestorePackages) == 'true'">
+ RestorePackages;
+ $(ResolveReferencesDependsOn);
+ </ResolveReferencesDependsOn>
+
+ <!-- Make the build depend on restore packages -->
+ <BuildDependsOn Condition="$(BuildPackage) == 'true'">
+ $(BuildDependsOn);
+ BuildPackage;
+ </BuildDependsOn>
+ </PropertyGroup>
+
+ <Target Name="CheckPrerequisites">
+ <!-- Raise an error if we're unable to locate nuget.exe -->
+ <Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
+ <SetEnvironmentVariable EnvKey="VisualStudioVersion" EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
+ <!--
+ Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
+ This effectively acts as a lock that makes sure that the download operation will only happen once and all
+ parallel builds will have to wait for it to complete.
+ -->
+ <MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT" />
+ </Target>
+
+ <Target Name="_DownloadNuGet">
+ <DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
+ </Target>
+
+ <Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(RestoreCommand)"
+ Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
+
+ <Exec Command="$(RestoreCommand)"
+ LogStandardErrorAsError="true"
+ Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
+ </Target>
+
+ <Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(BuildCommand)"
+ Condition=" '$(OS)' != 'Windows_NT' " />
+
+ <Exec Command="$(BuildCommand)"
+ LogStandardErrorAsError="true"
+ Condition=" '$(OS)' == 'Windows_NT' " />
+ </Target>
+
+ <UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
+ <ParameterGroup>
+ <OutputFilename ParameterType="System.String" Required="true" />
+ </ParameterGroup>
+ <Task>
+ <Reference Include="System.Core" />
+ <Using Namespace="System" />
+ <Using Namespace="System.IO" />
+ <Using Namespace="System.Net" />
+ <Using Namespace="Microsoft.Build.Framework" />
+ <Using Namespace="Microsoft.Build.Utilities" />
+ <Code Type="Fragment" Language="cs">
+ <![CDATA[
+ try {
+ OutputFilename = Path.GetFullPath(OutputFilename);
+
+ Log.LogMessage("Downloading latest version of NuGet.exe...");
+ WebClient webClient = new WebClient();
+ webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);
+
+ return true;
+ }
+ catch (Exception ex) {
+ Log.LogErrorFromException(ex);
+ return false;
+ }
+ ]]>
+ </Code>
+ </Task>
+ </UsingTask>
+
+ <UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
+ <ParameterGroup>
+ <EnvKey ParameterType="System.String" Required="true" />
+ <EnvValue ParameterType="System.String" Required="true" />
+ </ParameterGroup>
+ <Task>
+ <Using Namespace="System" />
+ <Code Type="Fragment" Language="cs">
+ <![CDATA[
+ try {
+ Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process);
+ }
+ catch {
+ }
+ ]]>
+ </Code>
+ </Task>
+ </UsingTask>
+</Project>
View
83 src/Twilio.Api.MonoDroid/AvailablePhoneNumbers.Async.cs
@@ -0,0 +1,83 @@
+using System;
+using RestSharp;
+using RestSharp.Extensions;
+using RestSharp.Validation;
+
+namespace Twilio
+{
+ public partial class TwilioRestClient
+ {
+ /// <summary>
+ /// Search available local phone numbers
+ /// </summary>
+ /// <param name="isoCountryCode">Two-character ISO country code (US or CA)</param>
+ /// <param name="options">Search filter options. Only properties with values set will be used.</param>
+ /// <param name="callback">Method to call upon successful completion</param>
+ public void ListAvailableLocalPhoneNumbers(string isoCountryCode, AvailablePhoneNumberListRequest options, Action<AvailablePhoneNumberResult> callback)
+ {
+ Require.Argument("isoCountryCode", isoCountryCode);
+
+ var request = new RestRequest();
+ request.Resource = "Accounts/{AccountSid}/AvailablePhoneNumbers/{IsoCountryCode}/Local.json";
+ request.AddUrlSegment("IsoCountryCode", isoCountryCode);
+
+ AddNumberSearchParameters(options, request);
+
+ ExecuteAsync<AvailablePhoneNumberResult>(request, (response) => callback(response));
+ }
+
+ /// <summary>
+ /// Search available toll-free phone numbers
+ /// </summary>
+ /// <param name="isoCountryCode">Two-character ISO country code (US or CA)</param>
+ /// <param name="callback">Method to call upon successful completion</param>
+ public void ListAvailableTollFreePhoneNumbers(string isoCountryCode, Action<AvailablePhoneNumberResult> callback)
+ {
+ Require.Argument("isoCountryCode", isoCountryCode);
+
+ var request = new RestRequest();
+ request.Resource = "Accounts/{AccountSid}/AvailablePhoneNumbers/{IsoCountryCode}/TollFree.json";
+ request.AddUrlSegment("IsoCountryCode", isoCountryCode);
+
+ ExecuteAsync<AvailablePhoneNumberResult>(request, (response) => callback(response));
+ }
+
+ /// <summary>
+ /// Search available toll-free phone numbers
+ /// </summary>
+ /// <param name="isoCountryCode">Two-character ISO country code (US or CA)</param>
+ /// <param name="contains">Value to use when filtering search. Accepts numbers or characters.</param>
+ /// <param name="callback">Method to call upon successful completion</param>
+ public void ListAvailableTollFreePhoneNumbers(string isoCountryCode, string contains, Action<AvailablePhoneNumberResult> callback)
+ {
+ Require.Argument("isoCountryCode", isoCountryCode);
+ Require.Argument("contains", contains);
+
+ var request = new RestRequest();
+ request.Resource = "Accounts/{AccountSid}/AvailablePhoneNumbers/{IsoCountryCode}/TollFree.json";
+ request.AddUrlSegment("IsoCountryCode", isoCountryCode);
+
+ request.AddParameter("Contains", contains);
+
+ ExecuteAsync<AvailablePhoneNumberResult>(request, (response) => callback(response));
+ }
+
+ private void AddNumberSearchParameters(AvailablePhoneNumberListRequest options, RestRequest request)
+ {
+ if (options.AreaCode.HasValue()) request.AddParameter("AreaCode", options.AreaCode);
+ if (options.Contains.HasValue()) request.AddParameter("Contains", options.Contains);
+ if (options.Distance.HasValue) request.AddParameter("Distance", options.Distance);
+ if (options.InLata.HasValue()) request.AddParameter("InLata", options.InLata);
+ if (options.InPostalCode.HasValue()) request.AddParameter("InPostalCode", options.InPostalCode);
+ if (options.InRateCenter.HasValue()) request.AddParameter("InRateCenter", options.InRateCenter);
+ if (options.InRegion.HasValue()) request.AddParameter("InRegion", options.InRegion);
+ if (options.NearLatLong.HasValue()) request.AddParameter("NearLatLong", options.NearLatLong);
+ if (options.NearNumber.HasValue()) request.AddParameter("NearNumber", options.NearNumber);
+
+ if (options.SmsEnabled.HasValue) request.AddParameter("SmsEnabled", options.SmsEnabled.Value);
+ if (options.VoiceEnabled.HasValue) request.AddParameter("VoiceEnabled", options.VoiceEnabled.Value);
+ if (options.MmsEnabled.HasValue) request.AddParameter("MmsEnabled", options.MmsEnabled.Value);
+ }
+
+ }
+}
View
70 src/Twilio.Api.MonoDroid/Notifications.Async.cs
@@ -0,0 +1,70 @@
+using System;
+using RestSharp;
+using RestSharp.Validation;
+
+namespace Twilio
+{
+ public partial class TwilioRestClient
+ {
+ /// <summary>
+ /// Retrieve the details of a specific notification
+ /// </summary>
+ /// <param name="notificationSid">The Sid of the notification to retrieve</param>
+ /// <param name="callback">Method to call upon successful completion</param>
+ public void GetNotification(string notificationSid, Action<Notification> callback)
+ {
+ var request = new RestRequest();
+ request.Resource = "Accounts/{AccountSid}/Notifications/{NotificationSid}.json";
+
+ request.AddParameter("NotificationSid", notificationSid, ParameterType.UrlSegment);
+
+ ExecuteAsync<Notification>(request, (response) => callback(response));
+ }
+
+ /// <summary>
+ /// Returns a list of notifications generated for an account. The list includes paging information and is sorted by DateUpdated, with most recent notifications first.
+ /// </summary>
+ /// <param name="callback">Method to call upon successful completion</param>
+ public void ListNotifications(Action<NotificationResult> callback)
+ {
+ ListNotifications(null, null, null, null, callback);
+ }
+
+ /// <summary>
+ /// Returns a filtered list of notifications generated for an account. The list includes paging information and is sorted by DateUpdated, with most recent notifications first.
+ /// </summary>
+ /// <param name="log">Only show notifications for this log, using the integer log values: 0 is ERROR, 1 is WARNING</param>
+ /// <param name="messageDate">Only show notifications for this date (in GMT)</param>
+ /// <param name="pageNumber">The page number to start retrieving results from</param>
+ /// <param name="count">How many notifications to return</param>
+ /// <param name="callback">Method to call upon successful completion</param>
+ public void ListNotifications(int? log, DateTime? messageDate, int? pageNumber, int? count, Action<NotificationResult> callback)
+ {
+ var request = new RestRequest();
+ request.Resource = "Accounts/{AccountSid}/Notifications.json";
+
+ if (log.HasValue) request.AddParameter("Log", log);
+ if (messageDate.HasValue) request.AddParameter("MessageDate", messageDate.Value.ToString("yyyy-MM-dd"));
+ if (pageNumber.HasValue) request.AddParameter("Page", pageNumber.Value);
+ if (count.HasValue) request.AddParameter("PageSize", count.Value);
+
+ ExecuteAsync<NotificationResult>(request, (response) => callback(response));
+ }
+
+ /// <summary>
+ /// Deletes a notification from your account
+ /// </summary>
+ /// <param name="notificationSid">The Sid of the notification to delete</param>
+ /// <param name="callback">Method to call upon successful completion</param>
+ public void DeleteNotification(string notificationSid, Action<DeleteStatus> callback)
+ {
+ Require.Argument("NotificationSid", notificationSid);
+ var request = new RestRequest(Method.DELETE);
+ request.Resource = "Accounts/{AccountSid}/Notifications/{NotificationSid}.json";
+
+ request.AddParameter("NotificationSid", notificationSid, ParameterType.UrlSegment);
+
+ ExecuteAsync(request, (response) => { callback(response.StatusCode == System.Net.HttpStatusCode.NoContent ? DeleteStatus.Success : DeleteStatus.Failed); });
+ }
+ }
+}
View
479 src/Twilio.Api.MonoDroid/Twilio.Api.MonoDroid.csproj
@@ -1,241 +1,240 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>10.0.0</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{FBB12CB6-7255-4F5C-825D-FAC178682422}</ProjectGuid>
- <ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <OutputType>Library</OutputType>
- <RootNamespace>Twilio.Api.MonoDroid</RootNamespace>
- <MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
- <MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
- <AssemblyName>Twilio.Api.MonoDroid</AssemblyName>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug</OutputPath>
- <DefineConstants>DEBUG;</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <ConsolePause>false</ConsolePause>
- <AndroidLinkMode>None</AndroidLinkMode>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <ConsolePause>false</ConsolePause>
- <AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
- <AndroidLinkMode>SdkOnly</AndroidLinkMode>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Xml" />
- <Reference Include="System.Core" />
- <Reference Include="Mono.Android" />
- <Reference Include="RestSharp.MonoDroid">
- <HintPath>..\packages\OtherDependencies\RestSharp.MonoDroid.dll</HintPath>
- </Reference>
- <Reference Include="Newtonsoft.Json.MonoDroid">
- <HintPath>..\packages\OtherDependencies\Newtonsoft.Json.MonoDroid.dll</HintPath>
- </Reference>
- </ItemGroup>
- <Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
- <ItemGroup>
- <Folder Include="Model\" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="..\Twilio.Api\Model\Account.cs">
- <Link>Model\Account.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\AccountStatus.cs">
- <Link>Model\AccountStatus.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\Application.cs">
- <Link>Model\Application.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\ApplicationOptions.cs">
- <Link>Model\ApplicationOptions.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\ApplicationResult.cs">
- <Link>Model\ApplicationResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\AuthorizedConnectApp.cs">
- <Link>Model\AuthorizedConnectApp.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\AuthorizedConnectAppResult.cs">
- <Link>Model\AuthorizedConnectAppResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\AvailablePhoneNumber.cs">
- <Link>Model\AvailablePhoneNumber.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\AvailablePhoneNumberListRequest.cs">
- <Link>Model\AvailablePhoneNumberListRequest.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\AvailablePhoneNumberResult.cs">
- <Link>Model\AvailablePhoneNumberResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\Call.cs">
- <Link>Model\Call.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\CallListRequest.cs">
- <Link>Model\CallListRequest.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\CallOptions.cs">
- <Link>Model\CallOptions.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\CallResult.cs">
- <Link>Model\CallResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\ComparisonType.cs">
- <Link>Model\ComparisonType.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\Conference.cs">
- <Link>Model\Conference.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\ConferenceListRequest.cs">
- <Link>Model\ConferenceListRequest.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\ConferenceResult.cs">
- <Link>Model\ConferenceResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\ConnectApp.cs">
- <Link>Model\ConnectApp.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\ConnectAppResult.cs">
- <Link>Model\ConnectAppResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\DeleteStatus.cs">
- <Link>Model\DeleteStatus.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\HangupStyle.cs">
- <Link>Model\HangupStyle.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\IncomingPhoneNumber.cs">
- <Link>Model\IncomingPhoneNumber.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\IncomingPhoneNumberResult.cs">
- <Link>Model\IncomingPhoneNumberResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\Notification.cs">
- <Link>Model\Notification.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\NotificationResult.cs">
- <Link>Model\NotificationResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\OutgoingCallerId.cs">
- <Link>Model\OutgoingCallerId.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\OutgoingCallerIdResult.cs">
- <Link>Model\OutgoingCallerIdResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\Participant.cs">
- <Link>Model\Participant.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\ParticipantResult.cs">
- <Link>Model\ParticipantResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\Permission.cs">
- <Link>Model\Permission.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\PhoneNumberOptions.cs">
- <Link>Model\PhoneNumberOptions.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\Recording.cs">
- <Link>Model\Recording.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\RecordingResult.cs">
- <Link>Model\RecordingResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\RestException.cs">
- <Link>Model\RestException.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\Sandbox.cs">
- <Link>Model\Sandbox.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\SmsMessage.cs">
- <Link>Model\SmsMessage.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\SmsMessageResult.cs">
- <Link>Model\SmsMessageResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\SmsShortCode.cs">
- <Link>Model\SmsShortCode.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\SmsShortCodeResult.cs">
- <Link>Model\SmsShortCodeResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\Transcription.cs">
- <Link>Model\Transcription.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\TranscriptionResult.cs">
- <Link>Model\TranscriptionResult.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\TwilioBase.cs">
- <Link>Model\TwilioBase.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\TwilioListBase.cs">
- <Link>Model\TwilioListBase.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Model\ValidationRequest.cs">
- <Link>Model\ValidationRequest.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Accounts.Async.cs">
- <Link>Accounts.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Applications.Async.cs">
- <Link>Applications.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\AuthorizedConnectApps.Async.cs">
- <Link>AuthorizedConnectApps.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\AvailablePhoneNumbers.Aysnc.cs">
- <Link>AvailablePhoneNumbers.Aysnc.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Calls.Async.cs">
- <Link>Calls.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Conference.Async.cs">
- <Link>Conference.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\ConnectApps.Async.cs">
- <Link>ConnectApps.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Core.Async.cs">
- <Link>Core.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\IncomingPhoneNumbers.Async.cs">
- <Link>IncomingPhoneNumbers.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Notifications.Aysnc.cs">
- <Link>Notifications.Aysnc.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\OutgoingCallerIds.Async.cs">
- <Link>OutgoingCallerIds.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Recordings.Async.cs">
- <Link>Recordings.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Sandbox.Async.cs">
- <Link>Sandbox.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Sms.Async.cs">
- <Link>Sms.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Transcriptions.Async.cs">
- <Link>Transcriptions.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\Core.cs">
- <Link>Core.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api\SharedAssemblyInfo.cs">
- <Link>SharedAssemblyInfo.cs</Link>
- </Compile>
- </ItemGroup>
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>10.0.0</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{FBB12CB6-7255-4F5C-825D-FAC178682422}</ProjectGuid>
+ <ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <RootNamespace>Twilio.Api.MonoDroid</RootNamespace>
+ <MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
+ <MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
+ <AssemblyName>Twilio.Api.MonoDroid</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug</OutputPath>
+ <DefineConstants>DEBUG;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ <AndroidLinkMode>None</AndroidLinkMode>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>none</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ <AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
+ <AndroidLinkMode>SdkOnly</AndroidLinkMode>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Core" />
+ <Reference Include="Mono.Android" />
+ <Reference Include="RestSharp.MonoDroid">
+ <HintPath>..\packages\OtherDependencies\RestSharp.MonoDroid.dll</HintPath>
+ </Reference>
+ <Reference Include="Newtonsoft.Json.MonoDroid">
+ <HintPath>..\packages\OtherDependencies\Newtonsoft.Json.MonoDroid.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
+ <ItemGroup>
+ <ProjectReference Include="..\Twilio.Api\Twilio.Api.csproj">
+ <Project>{894ff9e8-4dbf-4472-8ae2-1a6a988e105b}</Project>
+ <Name>Twilio.Api</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\Twilio.Api\Model\Account.cs">
+ <Link>Model\Account.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\AccountStatus.cs">
+ <Link>Model\AccountStatus.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Application.cs">
+ <Link>Model\Application.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ApplicationOptions.cs">
+ <Link>Model\ApplicationOptions.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ApplicationResult.cs">
+ <Link>Model\ApplicationResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\AuthorizedConnectApp.cs">
+ <Link>Model\AuthorizedConnectApp.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\AuthorizedConnectAppResult.cs">
+ <Link>Model\AuthorizedConnectAppResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\AvailablePhoneNumber.cs">
+ <Link>Model\AvailablePhoneNumber.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\AvailablePhoneNumberListRequest.cs">
+ <Link>Model\AvailablePhoneNumberListRequest.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\AvailablePhoneNumberResult.cs">
+ <Link>Model\AvailablePhoneNumberResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Call.cs">
+ <Link>Model\Call.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\CallListRequest.cs">
+ <Link>Model\CallListRequest.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\CallOptions.cs">
+ <Link>Model\CallOptions.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\CallResult.cs">
+ <Link>Model\CallResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ComparisonType.cs">
+ <Link>Model\ComparisonType.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Conference.cs">
+ <Link>Model\Conference.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ConferenceListRequest.cs">
+ <Link>Model\ConferenceListRequest.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ConferenceResult.cs">
+ <Link>Model\ConferenceResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ConnectApp.cs">
+ <Link>Model\ConnectApp.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ConnectAppResult.cs">
+ <Link>Model\ConnectAppResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\DeleteStatus.cs">
+ <Link>Model\DeleteStatus.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\HangupStyle.cs">
+ <Link>Model\HangupStyle.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\IncomingPhoneNumber.cs">
+ <Link>Model\IncomingPhoneNumber.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\IncomingPhoneNumberResult.cs">
+ <Link>Model\IncomingPhoneNumberResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Notification.cs">
+ <Link>Model\Notification.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\NotificationResult.cs">
+ <Link>Model\NotificationResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\OutgoingCallerId.cs">
+ <Link>Model\OutgoingCallerId.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\OutgoingCallerIdResult.cs">
+ <Link>Model\OutgoingCallerIdResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Participant.cs">
+ <Link>Model\Participant.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ParticipantResult.cs">
+ <Link>Model\ParticipantResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Permission.cs">
+ <Link>Model\Permission.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\PhoneNumberOptions.cs">
+ <Link>Model\PhoneNumberOptions.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Recording.cs">
+ <Link>Model\Recording.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\RecordingResult.cs">
+ <Link>Model\RecordingResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\RestException.cs">
+ <Link>Model\RestException.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Sandbox.cs">
+ <Link>Model\Sandbox.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\SmsMessage.cs">
+ <Link>Model\SmsMessage.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\SmsMessageResult.cs">
+ <Link>Model\SmsMessageResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\SmsShortCode.cs">
+ <Link>Model\SmsShortCode.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\SmsShortCodeResult.cs">
+ <Link>Model\SmsShortCodeResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Transcription.cs">
+ <Link>Model\Transcription.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\TranscriptionResult.cs">
+ <Link>Model\TranscriptionResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\TwilioBase.cs">
+ <Link>Model\TwilioBase.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\TwilioListBase.cs">
+ <Link>Model\TwilioListBase.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ValidationRequest.cs">
+ <Link>Model\ValidationRequest.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Accounts.Async.cs">
+ <Link>Accounts.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Applications.Async.cs">
+ <Link>Applications.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\AuthorizedConnectApps.Async.cs">
+ <Link>AuthorizedConnectApps.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Calls.Async.cs">
+ <Link>Calls.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Conference.Async.cs">
+ <Link>Conference.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\ConnectApps.Async.cs">
+ <Link>ConnectApps.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Core.Async.cs">
+ <Link>Core.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\IncomingPhoneNumbers.Async.cs">
+ <Link>IncomingPhoneNumbers.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\OutgoingCallerIds.Async.cs">
+ <Link>OutgoingCallerIds.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Recordings.Async.cs">
+ <Link>Recordings.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Sandbox.Async.cs">
+ <Link>Sandbox.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Sms.Async.cs">
+ <Link>Sms.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Transcriptions.Async.cs">
+ <Link>Transcriptions.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Core.cs">
+ <Link>Core.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\SharedAssemblyInfo.cs">
+ <Link>SharedAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="AvailablePhoneNumbers.Async.cs" />
+ <Compile Include="Notifications.Async.cs" />
+ </ItemGroup>
</Project>
View
31 src/Twilio.Api.MonoDroid/Twilio.Api.MonoDroid.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Twilio.Api.MonoDroid", "Twilio.Api.MonoDroid.csproj", "{FBB12CB6-7255-4F5C-825D-FAC178682422}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Twilio.Api", "..\Twilio.Api\Twilio.Api.csproj", "{894FF9E8-4DBF-4472-8AE2-1A6A988E105B}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ ReleaseWithPackage|Any CPU = ReleaseWithPackage|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {FBB12CB6-7255-4F5C-825D-FAC178682422}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FBB12CB6-7255-4F5C-825D-FAC178682422}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FBB12CB6-7255-4F5C-825D-FAC178682422}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FBB12CB6-7255-4F5C-825D-FAC178682422}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FBB12CB6-7255-4F5C-825D-FAC178682422}.ReleaseWithPackage|Any CPU.ActiveCfg = Release|Any CPU
+ {FBB12CB6-7255-4F5C-825D-FAC178682422}.ReleaseWithPackage|Any CPU.Build.0 = Release|Any CPU
+ {894FF9E8-4DBF-4472-8AE2-1A6A988E105B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {894FF9E8-4DBF-4472-8AE2-1A6A988E105B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {894FF9E8-4DBF-4472-8AE2-1A6A988E105B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {894FF9E8-4DBF-4472-8AE2-1A6A988E105B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {894FF9E8-4DBF-4472-8AE2-1A6A988E105B}.ReleaseWithPackage|Any CPU.ActiveCfg = ReleaseWithPackage|Any CPU
+ {894FF9E8-4DBF-4472-8AE2-1A6A988E105B}.ReleaseWithPackage|Any CPU.Build.0 = ReleaseWithPackage|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
BIN  src/Twilio.Api.MonoTouch/UpgradeLog.htm
Binary file not shown
View
150 src/Twilio.Api.Silverlight/.nuget/nuget.targets
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
+
+ <!-- Enable the restore command to run before builds -->
+ <RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
+
+ <!-- Property that enables building a package from a project -->
+ <BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
+
+ <!-- Determines if package restore consent is required to restore packages -->
+ <RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
+
+ <!-- Download NuGet.exe if it does not already exist -->
+ <DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
+ </PropertyGroup>
+
+ <ItemGroup Condition=" '$(PackageSources)' == '' ">
+ <!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
+ <!--
+ <PackageSource Include="https://nuget.org/api/v2/" />
+ <PackageSource Include="https://my-nuget-source/nuget/" />
+ -->
+ </ItemGroup>
+
+ <PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
+ <!-- Windows specific commands -->
+ <NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
+ <PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
+ <!-- We need to launch nuget.exe with the mono command if we're not on windows -->
+ <NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
+ <PackagesConfig>packages.config</PackagesConfig>
+ </PropertyGroup>
+
+ <PropertyGroup>
+ <!-- NuGet command -->
+ <NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\nuget.exe</NuGetExePath>
+ <PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
+
+ <NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
+ <NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
+
+ <PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
+
+ <RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
+ <!-- Commands -->
+ <RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -solutionDir "$(SolutionDir) "</RestoreCommand>
+ <BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
+
+ <!-- We need to ensure packages are restored prior to assembly resolve -->
+ <ResolveReferencesDependsOn Condition="$(RestorePackages) == 'true'">
+ RestorePackages;
+ $(ResolveReferencesDependsOn);
+ </ResolveReferencesDependsOn>
+
+ <!-- Make the build depend on restore packages -->
+ <BuildDependsOn Condition="$(BuildPackage) == 'true'">
+ $(BuildDependsOn);
+ BuildPackage;
+ </BuildDependsOn>
+ </PropertyGroup>
+
+ <Target Name="CheckPrerequisites">
+ <!-- Raise an error if we're unable to locate nuget.exe -->
+ <Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
+ <SetEnvironmentVariable EnvKey="VisualStudioVersion" EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
+ <!--
+ Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
+ This effectively acts as a lock that makes sure that the download operation will only happen once and all
+ parallel builds will have to wait for it to complete.
+ -->
+ <MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT;DownloadNuGetExe=true" />
+ </Target>
+
+ <Target Name="_DownloadNuGet">
+ <DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
+ </Target>
+
+ <Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(RestoreCommand)"
+ Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
+
+ <Exec Command="$(RestoreCommand)"
+ LogStandardErrorAsError="true"
+ Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
+ </Target>
+
+ <Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(BuildCommand)"
+ Condition=" '$(OS)' != 'Windows_NT' " />
+
+ <Exec Command="$(BuildCommand)"
+ LogStandardErrorAsError="true"
+ Condition=" '$(OS)' == 'Windows_NT' " />
+ </Target>
+
+ <UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
+ <ParameterGroup>
+ <OutputFilename ParameterType="System.String" Required="true" />
+ </ParameterGroup>
+ <Task>
+ <Reference Include="System.Core" />
+ <Using Namespace="System" />
+ <Using Namespace="System.IO" />
+ <Using Namespace="System.Net" />
+ <Using Namespace="Microsoft.Build.Framework" />
+ <Using Namespace="Microsoft.Build.Utilities" />
+ <Code Type="Fragment" Language="cs">
+ <![CDATA[
+ try {
+ OutputFilename = Path.GetFullPath(OutputFilename);
+
+ Log.LogMessage("Downloading latest version of NuGet.exe...");
+ WebClient webClient = new WebClient();
+ webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);
+
+ return true;
+ }
+ catch (Exception ex) {
+ Log.LogErrorFromException(ex);
+ return false;
+ }
+ ]]>
+ </Code>
+ </Task>
+ </UsingTask>
+
+ <UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
+ <ParameterGroup>
+ <EnvKey ParameterType="System.String" Required="true" />
+ <EnvValue ParameterType="System.String" Required="true" />
+ </ParameterGroup>
+ <Task>
+ <Using Namespace="System" />
+ <Code Type="Fragment" Language="cs">
+ <![CDATA[
+ try {
+ Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process);
+ }
+ catch {
+ }
+ ]]>
+ </Code>
+ </Task>
+ </UsingTask>
+</Project>
View
96 src/Twilio.Api.Silverlight/AvailablePhoneNumbers.cs
@@ -0,0 +1,96 @@
+using RestRT;
+using RestRT.Extensions;
+using RestRT.Validation;
+using System;
+using System.Runtime.InteropServices.WindowsRuntime;
+using System.Threading.Tasks;
+using Windows.Foundation;
+
+namespace Twilio
+{
+ public partial class TwilioRestClient
+ {
+ /// <summary>
+ /// Search available local phone numbers. Makes a GET request to the AvailablePhoneNumber List resource.
+ /// </summary>
+ /// <param name="isoCountryCode">Two-character ISO country code (US or CA)</param>
+ /// <param name="options">Search filter options. Only properties with values set will be used.</param>
+ public IAsyncOperation<AvailablePhoneNumberResult> ListAvailableLocalPhoneNumbersAsync(string isoCountryCode, AvailablePhoneNumberListRequest options)
+ {
+ return (IAsyncOperation<AvailablePhoneNumberResult>)AsyncInfo.Run((System.Threading.CancellationToken ct) => ListAvailableLocalPhoneNumbersAsyncInternal(isoCountryCode, options));
+ }
+ private async Task<AvailablePhoneNumberResult> ListAvailableLocalPhoneNumbersAsyncInternal(string isoCountryCode, AvailablePhoneNumberListRequest options)
+ {
+ Require.Argument("isoCountryCode", isoCountryCode);
+
+ var request = new RestRequest();
+ request.Resource = "Accounts/{AccountSid}/AvailablePhoneNumbers/{IsoCountryCode}/Local.json";
+ request.AddUrlSegment("IsoCountryCode", isoCountryCode);
+
+ AddNumberSearchParameters(options, request);
+
+ var result = await ExecuteAsync(request, typeof(AvailablePhoneNumberResult));
+ return (AvailablePhoneNumberResult)result;
+
+ }
+
+ /// <summary>
+ /// Search available toll-free phone numbers. Makes a GET request to the AvailablePhoneNumber List resource.
+ /// </summary>
+ /// <param name="isoCountryCode">Two-character ISO country code (US or CA)</param>
+ public IAsyncOperation<AvailablePhoneNumberResult> ListAvailableTollFreePhoneNumbersAsync(string isoCountryCode)
+ {
+ return (IAsyncOperation<AvailablePhoneNumberResult>)AsyncInfo.Run((System.Threading.CancellationToken ct) => ListAvailableTollFreePhoneNumbersAsyncInternal(isoCountryCode));
+ }
+ private async Task<AvailablePhoneNumberResult> ListAvailableTollFreePhoneNumbersAsyncInternal(string isoCountryCode)
+ {
+ Require.Argument("isoCountryCode", isoCountryCode);
+
+ var request = new RestRequest();
+ request.Resource = "Accounts/{AccountSid}/AvailablePhoneNumbers/{IsoCountryCode}/TollFree.json";
+ request.AddUrlSegment("IsoCountryCode", isoCountryCode);
+
+ var result = await ExecuteAsync(request, typeof(AvailablePhoneNumberResult));
+ return (AvailablePhoneNumberResult)result;
+
+ }
+
+ /// <summary>
+ /// Search available toll-free phone numbers. Makes a GET request to the AvailablePhoneNumber List resource.
+ /// </summary>
+ /// <param name="isoCountryCode">Two-character ISO country code (US or CA)</param>
+ /// <param name="contains">Value to use when filtering search. Accepts numbers or characters.</param>
+ public IAsyncOperation<AvailablePhoneNumberResult> ListAvailableTollFreePhoneNumbersAsync(string isoCountryCode, string contains)
+ {
+ return (IAsyncOperation<AvailablePhoneNumberResult>)AsyncInfo.Run((System.Threading.CancellationToken ct) => ListAvailableTollFreePhoneNumbersAsyncInternal(isoCountryCode, contains));
+ }
+ private async Task<AvailablePhoneNumberResult> ListAvailableTollFreePhoneNumbersAsyncInternal(string isoCountryCode, string contains)
+ {
+ Require.Argument("isoCountryCode", isoCountryCode);
+ Require.Argument("contains", contains);
+
+ var request = new RestRequest();
+ request.Resource = "Accounts/{AccountSid}/AvailablePhoneNumbers/{IsoCountryCode}/TollFree.json";
+ request.AddUrlSegment("IsoCountryCode", isoCountryCode);
+
+ request.AddParameter("Contains", contains);
+
+ var result = await ExecuteAsync(request, typeof(AvailablePhoneNumberResult));
+ return (AvailablePhoneNumberResult)result;
+
+ }
+
+ private void AddNumberSearchParameters(AvailablePhoneNumberListRequest options, RestRequest request)
+ {
+ if (options.AreaCode.HasValue()) request.AddParameter("AreaCode", options.AreaCode);
+ if (options.Contains.HasValue()) request.AddParameter("Contains", options.Contains);
+ if (options.Distance.HasValue) request.AddParameter("Distance", options.Distance);
+ if (options.InLata.HasValue()) request.AddParameter("InLata", options.InLata);
+ if (options.InPostalCode.HasValue()) request.AddParameter("InPostalCode", options.InPostalCode);
+ if (options.InRateCenter.HasValue()) request.AddParameter("InRateCenter", options.InRateCenter);
+ if (options.InRegion.HasValue()) request.AddParameter("InRegion", options.InRegion);
+ if (options.NearLatLong.HasValue()) request.AddParameter("NearLatLong", options.NearLatLong);
+ if (options.NearNumber.HasValue()) request.AddParameter("NearNumber", options.NearNumber);
+ }
+ }
+}
View
23 src/Twilio.Api.Silverlight/Twilio.Api.Silverlight.sln
@@ -0,0 +1,23 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Twilio.Api.Silverlight", "Twilio.Api.Silverlight.csproj", "{08218C33-9EE0-4B7B-874B-83CCEB8FE4DD}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ ReleaseWithPackage|Any CPU = ReleaseWithPackage|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {08218C33-9EE0-4B7B-874B-83CCEB8FE4DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {08218C33-9EE0-4B7B-874B-83CCEB8FE4DD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {08218C33-9EE0-4B7B-874B-83CCEB8FE4DD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {08218C33-9EE0-4B7B-874B-83CCEB8FE4DD}.Release|Any CPU.Build.0 = Release|Any CPU
+ {08218C33-9EE0-4B7B-874B-83CCEB8FE4DD}.ReleaseWithPackage|Any CPU.ActiveCfg = ReleaseWithPackage|Any CPU
+ {08218C33-9EE0-4B7B-874B-83CCEB8FE4DD}.ReleaseWithPackage|Any CPU.Build.0 = ReleaseWithPackage|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
495 src/Twilio.Api/Twilio.Api.csproj
@@ -1,252 +1,251 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{894FF9E8-4DBF-4472-8AE2-1A6A988E105B}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Twilio</RootNamespace>
- <AssemblyName>Twilio.Api</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <OldToolsVersion>3.5</OldToolsVersion>
- <UpgradeBackupLocation />
- <TargetFrameworkProfile>Client</TargetFrameworkProfile>
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
- <RestorePackages>true</RestorePackages>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>TRACE;DEBUG;FRAMEWORK</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
- <DocumentationFile>bin\Debug\Twilio.Api.xml</DocumentationFile>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE;FRAMEWORK</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
- <DocumentationFile>bin\Release\Twilio.Api.xml</DocumentationFile>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseWithPackage|AnyCPU'">
- <OutputPath>bin\ReleaseWithPackage\</OutputPath>
- <DefineConstants>TRACE;FRAMEWORK</DefineConstants>
- <DocumentationFile>bin\Release\Twilio.Api.xml</DocumentationFile>
- <Optimize>true</Optimize>
- <DebugType>pdbonly</DebugType>
- <PlatformTarget>AnyCPU</PlatformTarget>
- <ErrorReport>prompt</ErrorReport>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
- <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
- <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
- <CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="RestSharp, Version=104.2.0.0, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\RestSharp.104.2.0\lib\net35-client\RestSharp.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Net" />
- <Reference Include="System.Xml.Linq">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="..\Twilio.Api.Silverlight\Accounts.Async.cs">
- <Link>Accounts.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Applications.Async.cs">
- <Link>Applications.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Calls.Async.cs">
- <Link>Calls.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Conference.Async.cs">
- <Link>Conference.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\ConnectApps.Async.cs">
- <Link>ConnectApps.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Core.Async.cs">
- <Link>Core.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\IncomingPhoneNumbers.Async.cs">
- <Link>IncomingPhoneNumbers.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Media.Async.cs">
- <Link>Media.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Messages.Async.cs">
- <Link>Messages.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Notifications.Async.cs">
- <Link>Notifications.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\OutgoingCallerIds.Async.cs">
- <Link>OutgoingCallerIds.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Queues.Async.cs">
- <Link>Queues.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Recordings.Async.cs">
- <Link>Recordings.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Sandbox.Async.cs">
- <Link>Sandbox.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Sip.Async.cs">
- <Link>Sip.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Sms.Async.cs">
- <Link>Sms.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Transcriptions.Async.cs">
- <Link>Transcriptions.Async.cs</Link>
- </Compile>
- <Compile Include="..\Twilio.Api.Silverlight\Usage.Async.cs">
- <Link>Usage.Async.cs</Link>
- </Compile>
- <Compile Include="Accounts.cs" />
- <Compile Include="Applications.cs" />
- <Compile Include="AuthorizedConnectApps.Async.cs" />
- <Compile Include="AuthorizedConnectApps.cs" />
- <Compile Include="AvailablePhoneNumbers.cs" />
- <Compile Include="AvailablePhoneNumbers.Async.cs" />
- <Compile Include="Calls.cs" />
- <Compile Include="Conference.cs" />
- <Compile Include="Core.cs" />
- <Compile Include="ConnectApps.cs" />
- <Compile Include="IncomingPhoneNumbers.cs" />
- <Compile Include="Media.cs" />
- <Compile Include="Messages.cs" />
- <Compile Include="Model\Capabilities.cs" />
- <Compile Include="Model\MediaListRequest.cs" />
- <Compile Include="Notifications.cs" />
- <Compile Include="OutgoingCallerIds.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="Queues.cs" />
- <Compile Include="Recordings.cs" />
- <Compile Include="Sandbox.cs" />
- <Compile Include="SharedAssemblyInfo.cs" />
- <Compile Include="Sms.cs" />
- <Compile Include="Transcriptions.cs" />
- <Compile Include="Usage.cs" />
- <Compile Include="Model\Account.cs" />
- <Compile Include="Model\AccountResult.cs" />
- <Compile Include="Model\AccountStatus.cs" />
- <Compile Include="Model\Application.cs" />
- <Compile Include="Model\ApplicationResult.cs" />
- <Compile Include="Model\ApplicationOptions.cs" />
- <Compile Include="Model\AvailablePhoneNumber.cs" />
- <Compile Include="Model\AvailablePhoneNumberResult.cs" />
- <Compile Include="Model\AuthorizedConnectApp.cs" />
- <Compile Include="Model\AuthorizedConnectAppResult.cs" />
- <Compile Include="Model\ConnectApp.cs" />
- <Compile Include="Model\ConnectAppResult.cs" />
- <Compile Include="Model\Credential.cs" />
- <Compile Include="Model\CredentialList.cs" />
- <Compile Include="Model\CredentialListMapping.cs" />
- <Compile Include="Model\CredentialListMappingResult.cs" />
- <Compile Include="Model\CredentialListResult.cs" />
- <Compile Include="Model\CredentialResult.cs" />
- <Compile Include="Model\IpAccessControlList.cs" />
- <Compile Include="Model\IpAccessControlListResult.cs" />
- <Compile Include="Model\IpAccessControlListMapping.cs" />
- <Compile Include="Model\IpAccessControlListMappingResult.cs" />
- <Compile Include="Model\IpAddress.cs" />
- <Compile Include="Model\IpAddressResult.cs" />
- <Compile Include="Model\MessageResult.cs" />
- <Compile Include="Model\DequeueStatus.cs" />
- <Compile Include="Model\Media.cs" />
- <Compile Include="Model\MediaResult.cs" />
- <Compile Include="Model\Message.cs" />
- <Compile Include="Model\MessageListRequest.cs" />
- <Compile Include="Model\OutgoingCallerIdOptions.cs" />
- <Compile Include="Model\Queue.cs" />
- <Compile Include="Model\QueueMember.cs" />
- <Compile Include="Model\QueueMemberResult.cs" />
- <Compile Include="Model\QueueResult.cs" />
- <Compile Include="Model\Domain.cs" />
- <Compile Include="Model\DomainOptions.cs" />
- <Compile Include="Model\DomainResult.cs" />
- <Compile Include="Model\SmsShortCodeResult.cs" />
- <Compile Include="Model\DeleteStatus.cs" />
- <Compile Include="Model\SmsShortCode.cs" />
- <Compile Include="Model\UsageRecord.cs" />
- <Compile Include="Model\UsageResult.cs" />
- <Compile Include="Model\UsageTrigger.cs" />
- <Compile Include="Model\UsageTriggerOptions.cs" />
- <Compile Include="Model\UsageTriggerResult.cs" />
- <Compile Include="Model\Call.cs" />
- <Compile Include="Model\CallResult.cs" />
- <Compile Include="Model\CallListRequest.cs" />
- <Compile Include="Model\CallOptions.cs" />
- <Compile Include="Model\AvailablePhoneNumberListRequest.cs" />
- <Compile Include="Model\ComparisonType.cs" />
- <Compile Include="Model\Conference.cs" />
- <Compile Include="Model\ConferenceResult.cs" />
- <Compile Include="Model\ConferenceListRequest.cs" />
- <Compile Include="Model\Sandbox.cs" />
- <Compile Include="Model\HangupStyle.cs" />
- <Compile Include="Model\IncomingPhoneNumber.cs" />
- <Compile Include="Model\IncomingPhoneNumberResult.cs" />
- <Compile Include="Model\Notification.cs" />
- <Compile Include="Model\NotificationResult.cs" />
- <Compile Include="Model\OutgoingCallerId.cs" />
- <Compile Include="Model\OutgoingCallerIdResult.cs" />
- <Compile Include="Model\Participant.cs" />
- <Compile Include="Model\ParticipantResult.cs" />
- <Compile Include="Model\PhoneNumberOptions.cs" />
- <Compile Include="Model\Recording.cs" />
- <Compile Include="Model\RecordingResult.cs" />
- <Compile Include="Model\RestException.cs" />
- <Compile Include="Model\SmsMessage.cs" />
- <Compile Include="Model\SmsMessageResult.cs" />
- <Compile Include="Model\Transcription.cs" />
- <Compile Include="Model\TranscriptionResult.cs" />
- <Compile Include="Model\TwilioBase.cs" />
- <Compile Include="Model\TwilioListBase.cs" />
- <Compile Include="Model\ValidationRequest.cs" />
- <Compile Include="Sip.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="packages.config" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{894FF9E8-4DBF-4472-8AE2-1A6A988E105B}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Twilio</RootNamespace>
+ <AssemblyName>Twilio.Api</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <UpgradeBackupLocation />
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>TRACE;DEBUG;FRAMEWORK</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <DocumentationFile>bin\Debug\Twilio.Api.xml</DocumentationFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE;FRAMEWORK</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <DocumentationFile>bin\Release\Twilio.Api.xml</DocumentationFile>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseWithPackage|AnyCPU'">
+ <OutputPath>bin\ReleaseWithPackage\</OutputPath>
+ <DefineConstants>TRACE;FRAMEWORK</DefineConstants>
+ <DocumentationFile>bin\Release\Twilio.Api.xml</DocumentationFile>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
+ <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
+ <CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="RestSharp">
+ <HintPath>..\Twilio.Api.MonoDroid\packages\RestSharp.104.3.3\lib\net35-client\RestSharp.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Net" />
+ <Reference Include="System.Xml.Linq">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\Twilio.Api.Silverlight\Accounts.Async.cs">
+ <Link>Accounts.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Applications.Async.cs">
+ <Link>Applications.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Calls.Async.cs">
+ <Link>Calls.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Conference.Async.cs">
+ <Link>Conference.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\ConnectApps.Async.cs">
+ <Link>ConnectApps.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Core.Async.cs">
+ <Link>Core.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\IncomingPhoneNumbers.Async.cs">
+ <Link>IncomingPhoneNumbers.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Media.Async.cs">
+ <Link>Media.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Messages.Async.cs">
+ <Link>Messages.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Notifications.Async.cs">
+ <Link>Notifications.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\OutgoingCallerIds.Async.cs">
+ <Link>OutgoingCallerIds.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Queues.Async.cs">
+ <Link>Queues.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Recordings.Async.cs">
+ <Link>Recordings.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Sandbox.Async.cs">
+ <Link>Sandbox.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Sip.Async.cs">
+ <Link>Sip.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Sms.Async.cs">
+ <Link>Sms.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Transcriptions.Async.cs">
+ <Link>Transcriptions.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Usage.Async.cs">
+ <Link>Usage.Async.cs</Link>
+ </Compile>
+ <Compile Include="Accounts.cs" />
+ <Compile Include="Applications.cs" />
+ <Compile Include="AuthorizedConnectApps.Async.cs" />
+ <Compile Include="AuthorizedConnectApps.cs" />
+ <Compile Include="AvailablePhoneNumbers.cs" />
+ <Compile Include="AvailablePhoneNumbers.Async.cs" />
+ <Compile Include="Calls.cs" />
+ <Compile Include="Conference.cs" />
+ <Compile Include="Core.cs" />
+ <Compile Include="ConnectApps.cs" />
+ <Compile Include="IncomingPhoneNumbers.cs" />
+ <Compile Include="Media.cs" />
+ <Compile Include="Messages.cs" />
+ <Compile Include="Model\Capabilities.cs" />
+ <Compile Include="Model\MediaListRequest.cs" />
+ <Compile Include="Notifications.cs" />
+ <Compile Include="OutgoingCallerIds.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Queues.cs" />
+ <Compile Include="Recordings.cs" />
+ <Compile Include="Sandbox.cs" />
+ <Compile Include="SharedAssemblyInfo.cs" />
+ <Compile Include="Sms.cs" />
+ <Compile Include="Transcriptions.cs" />
+ <Compile Include="Usage.cs" />
+ <Compile Include="Model\Account.cs" />
+ <Compile Include="Model\AccountResult.cs" />
+ <Compile Include="Model\AccountStatus.cs" />
+ <Compile Include="Model\Application.cs" />
+ <Compile Include="Model\ApplicationResult.cs" />
+ <Compile Include="Model\ApplicationOptions.cs" />
+ <Compile Include="Model\AvailablePhoneNumber.cs" />
+ <Compile Include="Model\AvailablePhoneNumberResult.cs" />
+ <Compile Include="Model\AuthorizedConnectApp.cs" />
+ <Compile Include="Model\AuthorizedConnectAppResult.cs" />
+ <Compile Include="Model\ConnectApp.cs" />
+ <Compile Include="Model\ConnectAppResult.cs" />
+ <Compile Include="Model\Credential.cs" />
+ <Compile Include="Model\CredentialList.cs" />
+ <Compile Include="Model\CredentialListMapping.cs" />
+ <Compile Include="Model\CredentialListMappingResult.cs" />
+ <Compile Include="Model\CredentialListResult.cs" />
+ <Compile Include="Model\CredentialResult.cs" />
+ <Compile Include="Model\IpAccessControlList.cs" />
+ <Compile Include="Model\IpAccessControlListResult.cs" />
+ <Compile Include="Model\IpAccessControlListMapping.cs" />
+ <Compile Include="Model\IpAccessControlListMappingResult.cs" />
+ <Compile Include="Model\IpAddress.cs" />
+ <Compile Include="Model\IpAddressResult.cs" />
+ <Compile Include="Model\MessageResult.cs" />
+ <Compile Include="Model\DequeueStatus.cs" />
+ <Compile Include="Model\Media.cs" />
+ <Compile Include="Model\MediaResult.cs" />
+ <Compile Include="Model\Message.cs" />
+ <Compile Include="Model\MessageListRequest.cs" />
+ <Compile Include="Model\OutgoingCallerIdOptions.cs" />
+ <Compile Include="Model\Queue.cs" />
+ <Compile Include="Model\QueueMember.cs" />
+ <Compile Include="Model\QueueMemberResult.cs" />
+ <Compile Include="Model\QueueResult.cs" />
+ <Compile Include="Model\Domain.cs" />
+ <Compile Include="Model\DomainOptions.cs" />
+ <Compile Include="Model\DomainResult.cs" />
+ <Compile Include="Model\SmsShortCodeResult.cs" />
+ <Compile Include="Model\DeleteStatus.cs" />
+ <Compile Include="Model\SmsShortCode.cs" />
+ <Compile Include="Model\UsageRecord.cs" />
+ <Compile Include="Model\UsageResult.cs" />
+ <Compile Include="Model\UsageTrigger.cs" />
+ <Compile Include="Model\UsageTriggerOptions.cs" />
+ <Compile Include="Model\UsageTriggerResult.cs" />
+ <Compile Include="Model\Call.cs" />
+ <Compile Include="Model\CallResult.cs" />
+ <Compile Include="Model\CallListRequest.cs" />
+ <Compile Include="Model\CallOptions.cs" />
+ <Compile Include="Model\AvailablePhoneNumberListRequest.cs" />
+ <Compile Include="Model\ComparisonType.cs" />
+ <Compile Include="Model\Conference.cs" />
+ <Compile Include="Model\ConferenceResult.cs" />
+ <Compile Include="Model\ConferenceListRequest.cs" />
+ <Compile Include="Model\Sandbox.cs" />
+ <Compile Include="Model\HangupStyle.cs" />
+ <Compile Include="Model\IncomingPhoneNumber.cs" />
+ <Compile Include="Model\IncomingPhoneNumberResult.cs" />
+ <Compile Include="Model\Notification.cs" />
+ <Compile Include="Model\NotificationResult.cs" />
+ <Compile Include="Model\OutgoingCallerId.cs" />
+ <Compile Include="Model\OutgoingCallerIdResult.cs" />
+ <Compile Include="Model\Participant.cs" />
+ <Compile Include="Model\ParticipantResult.cs" />
+ <Compile Include="Model\PhoneNumberOptions.cs" />
+ <Compile Include="Model\Recording.cs" />
+ <Compile Include="Model\RecordingResult.cs" />
+ <Compile Include="Model\RestException.cs" />
+ <Compile Include="Model\SmsMessage.cs" />
+ <Compile Include="Model\SmsMessageResult.cs" />
+ <Compile Include="Model\Transcription.cs" />
+ <Compile Include="Model\TranscriptionResult.cs" />
+ <Compile Include="Model\TwilioBase.cs" />
+ <Compile Include="Model\TwilioListBase.cs" />
+ <Compile Include="Model\ValidationRequest.cs" />
+ <Compile Include="Sip.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
- </Target>-->
- <Target Name="AfterBuild" Condition=" '$(Configuration)' == 'ReleaseWithPackage' ">
- <MakeDir Directories="$(MSBuildProjectDirectory)..\..\..\Download\package\twilio\lib\3.5" />
- <CreateItem Include="$(TargetDir)\$(ProjectName).*">
- <Output TaskParameter="Include" ItemName="FilesToCopy" />
- </CreateItem>
- <Copy SourceFiles="@(FilesToCopy)" DestinationFolder="$(MSBuildProjectDirectory)..\..\..\download\package\twilio\lib\3.5\" />
- </Target>
- <!--<Exec Command="&quot;c:\Program Files (x86)\Microsoft\ILMerge\ilmerge.exe&quot; /lib:$(OutDir) /internalize /ndebug /v2 /out:$(MSBuildProjectDirectory)\..\..\download\Twilio.Api.dll Twilio.Api.dll RestSharp.dll Newtonsoft.Json.dll" />-->
- <PropertyGroup>
- <PostBuildEvent>
- </PostBuildEvent>
- </PropertyGroup>
- <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
+ </Target>-->
+ <Target Name="AfterBuild" Condition=" '$(Configuration)' == 'ReleaseWithPackage' ">
+ <MakeDir Directories="$(MSBuildProjectDirectory)..\..\..\Download\package\twilio\lib\3.5" />
+ <CreateItem Include="$(TargetDir)\$(ProjectName).*">
+ <Output TaskParameter="Include" ItemName="FilesToCopy" />
+ </CreateItem>
+ <Copy SourceFiles="@(FilesToCopy)" DestinationFolder="$(MSBuildProjectDirectory)..\..\..\download\package\twilio\lib\3.5\" />
+ </Target>
+ <!--<Exec Command="&quot;c:\Program Files (x86)\Microsoft\ILMerge\ilmerge.exe&quot; /lib:$(OutDir) /internalize /ndebug /v2 /out:$(MSBuildProjectDirectory)\..\..\download\Twilio.Api.dll Twilio.Api.dll RestSharp.dll Newtonsoft.Json.dll" />-->
+ <PropertyGroup>
+ <PostBuildEvent>
+ </PostBuildEvent>
+ </PropertyGroup>
+ <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
</Project>
View
6 src/Twilio.Api/packages.config 100644 → 100755
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="RestSharp" version="104.2.0" targetFramework="net35-Client" />
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="RestSharp" version="104.3.3" targetFramework="net35-Client" />
</packages>
Please sign in to comment.
Something went wrong with that request. Please try again.