diff --git a/Bulutfon.Api/Bulutfon.Sdk.csproj b/Bulutfon.Api/Bulutfon.Sdk.csproj
index 30f3c5e..601c302 100644
--- a/Bulutfon.Api/Bulutfon.Sdk.csproj
+++ b/Bulutfon.Api/Bulutfon.Sdk.csproj
@@ -78,6 +78,9 @@
+
+ Code
+
diff --git a/Bulutfon.Api/BulutfonApi.cs b/Bulutfon.Api/BulutfonApi.cs
index d9978b2..fd5f971 100644
--- a/Bulutfon.Api/BulutfonApi.cs
+++ b/Bulutfon.Api/BulutfonApi.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
+using System.Linq;
using System.Net;
using System.Text;
using System.Web;
@@ -122,7 +123,8 @@ public static TResponse PostObject(string uri, Token tok
if (ret == null || ret.Length == 0) {
return null;
}
- return JsonConvert.DeserializeObject(Encoding.UTF8.GetString(ret), SerializerSettings());
+ var resString = Encoding.UTF8.GetString(ret);
+ return JsonConvert.DeserializeObject(resString, SerializerSettings());
}
}
catch (Exception e) {
@@ -265,8 +267,19 @@ public static byte[] GetStream(string uri, Token token, string key = "") {
///
/// Token provider (access ve refresh token)
/// Otomatik aramalar
- public static AutomaticCall GetAutomaticCall(Token token) {
- return GetObject("automatic-calls", token).automatic_call;
+ public static List GetAutomaticCalls(Token token) {
+ return GetObject("automatic-calls", token).automatic_calls;
+ }
+
+ ///
+ /// Id si verilen otomatik aramayı getir
+ ///
+ /// Token provider (access ve refresh token)
+ /// Automatic Call Id
+ /// Otomatik aramalar
+ public static AutomaticCall GetAutomaticCall(Token token,string id)
+ {
+ return GetObject("automatic-calls", token,id).automatic_call;
}
public static ResponseAutomaticCall CreateAutomaticCall(Token token, AutomaticCallCreator automaticCall) {
diff --git a/Bulutfon.Api/Models/Recipient.cs b/Bulutfon.Api/Models/Recipient.cs
index 35f3c61..32b6f08 100644
--- a/Bulutfon.Api/Models/Recipient.cs
+++ b/Bulutfon.Api/Models/Recipient.cs
@@ -15,6 +15,6 @@ public class Recipient
///
/// Aranan kişi bir tuşa bastıysa basılan tuş
///
- public int gather { get; set; }
+ public int? gather { get; set; }
}
}
\ No newline at end of file
diff --git a/Bulutfon.Api/Models/ResponseObjects/AutomaticCallListResponse.cs b/Bulutfon.Api/Models/ResponseObjects/AutomaticCallListResponse.cs
new file mode 100644
index 0000000..92d2af4
--- /dev/null
+++ b/Bulutfon.Api/Models/ResponseObjects/AutomaticCallListResponse.cs
@@ -0,0 +1,13 @@
+using System.Collections.Generic;
+
+namespace Bulutfon.Sdk.Models.ResponseObjects
+{
+ ///
+ /// Otomatik aramalar
+ /// GET /automatic-calls.json
+ ///
+ public class AutomaticCallListResponse
+ {
+ public List automatic_calls { get; set; }
+ }
+}
\ No newline at end of file