Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CallfireApiClient.nuspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?><package>
<metadata>
<id>CallfireApiClient</id>
<version>1.1.8</version>
<version>1.1.9</version>
<title>CallFire API v2 client</title>
<authors>
Vladimir Mikhailov
Expand All @@ -15,6 +15,8 @@
<description>C# client library for integration with Callfire REST API v2 services</description>
<releaseNotes>Callfire API client Changelog
=============================
Version 1.1.9 - Jul 11 2016
- added loading labels parameter in Number Lease objects
Version 1.1.8 - May 27 2016
- defaultLiveMessage, defaultMachineMessage, defaultLiveMessageSoundId, defaultMachineMessageSoundId, defaultVoice params added to send calls api
- added batch id filter parameter for get broadcast calls/texts
Expand Down
2 changes: 2 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Callfire API client Changelog
=============================
Version 1.1.9 - Jul 11 2016
- added loading labels parameter in Number Lease objects
Version 1.1.8 - May 27 2016
- defaultLiveMessage, defaultMachineMessage, defaultLiveMessageSoundId, defaultMachineMessageSoundId, defaultVoice params added to send calls api
- added batch id filter parameter for get broadcast calls/texts
Expand Down
12 changes: 1 addition & 11 deletions CurrentReleaseChanges.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
- defaultLiveMessage, defaultMachineMessage, defaultLiveMessageSoundId, defaultMachineMessageSoundId, defaultVoice params added to send calls api
- added batch id filter parameter for get broadcast calls/texts
- added fields filter parameter for add sound via call, returns CampaignSound object
- added fields filter parameter for add sound via text-to-speech, returns CampaignSound object
- defaultMessage parameter added to send texts function
- added findWebhookResource and findWebhookResources methods to use new webhooks apis
- resumeNextDay parameter added to CallBroadcast object
- transferMessage, transferMessageSoundId, transferDigit, transferNumber params added to CallRecipient object for sending calls and texts
- added questionResponses parameter to CallRecord object
- added duplicate parameter to CampaignSound object
- get call recordings api functions implemented in CallsApi
- added loading labels parameter in Number Lease objects
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public void FindNumberLeases()
Console.WriteLine(leases);

Assert.True(leases.Items.Count > 0);
Assert.True(leases.Items[0].Labels.Count > 0);
}

[Test]
Expand All @@ -27,6 +28,7 @@ public void GetNumberLease()

Assert.IsNotNull(lease.Region);
Assert.AreEqual(number, lease.PhoneNumber);
Assert.AreEqual(lease.Labels.Count, 2);
Assert.That(lease.Region.City, Is.StringContaining("LOS ANGELES"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"autoRenew": true,
"status": "ACTIVE",
"callFeatureStatus": "ENABLED",
"textFeatureStatus": "ENABLED"
"textFeatureStatus": "ENABLED",
"labels": ["label","label2"]
},
{
"number": "13025178999",
Expand All @@ -40,7 +41,8 @@
"autoRenew": true,
"status": "ACTIVE",
"callFeatureStatus": "UNSUPPORTED",
"textFeatureStatus": "ENABLED"
"textFeatureStatus": "ENABLED",
"labels": ["label","label3"]
}
],
"limit": 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
"autoRenew": true,
"status": "ACTIVE",
"callFeatureStatus": "ENABLED",
"textFeatureStatus": "ENABLED"
"textFeatureStatus": "ENABLED",
"labels": ["label","label2"]
}
7 changes: 5 additions & 2 deletions src/CallfireApiClient/Api/Numbers/Model/NumberLease.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using CallfireApiClient.Api.Keywords.Model;
using System.Collections.Generic;

namespace CallfireApiClient.Api.Numbers.Model
{
Expand All @@ -17,6 +18,8 @@ public class NumberLease : Number

public FeatureStatus? TextFeatureStatus { get; set; }

public IList<String> Labels { get; set; }

public enum FeatureStatus
{
UNSUPPORTED,
Expand All @@ -27,8 +30,8 @@ public enum FeatureStatus

public override string ToString()
{
return string.Format("[NumberLease: {0} LeaseBegin={1}, LeaseEnd={2}, AutoRenew={3}, Status={4}, CallFeatureStatus={5}, TextFeatureStatus={6}]",
base.ToString(), LeaseBegin, LeaseEnd, AutoRenew, Status, CallFeatureStatus, TextFeatureStatus);
return string.Format("[NumberLease: {0} LeaseBegin={1}, LeaseEnd={2}, AutoRenew={3}, Status={4}, CallFeatureStatus={5}, TextFeatureStatus={6}, Labels={7}]",
base.ToString(), LeaseBegin, LeaseEnd, AutoRenew, Status, CallFeatureStatus, TextFeatureStatus, Labels);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/CallfireApiClient/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion("1.1.8.*")]
[assembly: AssemblyVersion("1.1.9.*")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
Expand Down