Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f57518a1d5 | |||
| 1be0a94b51 |
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
; Erfordert Inno Setup 6.x (https://jrsoftware.org/isinfo.php)
|
; Erfordert Inno Setup 6.x (https://jrsoftware.org/isinfo.php)
|
||||||
|
|
||||||
#define MyAppName "Starface Outlook Sync"
|
#define MyAppName "Starface Outlook Sync"
|
||||||
#define MyAppVersion "0.0.0.10"
|
#define MyAppVersion "0.0.0.11"
|
||||||
#define MyAppPublisher "HackerSoft - Hacker-Net Telekommunikation"
|
#define MyAppPublisher "HackerSoft - Hacker-Net Telekommunikation"
|
||||||
#define MyAppURL "https://www.hacker-net.de"
|
#define MyAppURL "https://www.hacker-net.de"
|
||||||
#define MyAppExeName "StarfaceOutlookSync.exe"
|
#define MyAppExeName "StarfaceOutlookSync.exe"
|
||||||
|
|||||||
@@ -209,15 +209,34 @@ namespace StarfaceOutlookSync.Services
|
|||||||
|
|
||||||
if (array.Count == 0) break;
|
if (array.Count == 0) break;
|
||||||
|
|
||||||
// Ersten Kontakt als Debug-Info loggen
|
OnDebug?.Invoke($"Seite {page}: {array.Count} Kontakte in Liste");
|
||||||
if (firstPage && array.Count > 0)
|
|
||||||
|
// Die Listen-API gibt nur Summary zurueck.
|
||||||
|
// Jeden Kontakt einzeln abrufen fuer alle Felder.
|
||||||
|
foreach (var item in array)
|
||||||
{
|
{
|
||||||
OnDebug?.Invoke($"Starface API Rohdaten (1. Kontakt):\n{array[0].ToString(Formatting.Indented)}");
|
var id = item["id"]?.ToString();
|
||||||
|
if (string.IsNullOrEmpty(id)) continue;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var detailResp = await _http.GetAsync($"{_baseUrl}/contacts/{id}");
|
||||||
|
if (detailResp.IsSuccessStatusCode)
|
||||||
|
{
|
||||||
|
var detailBody = await detailResp.Content.ReadAsStringAsync();
|
||||||
|
var detailObj = JObject.Parse(detailBody);
|
||||||
|
|
||||||
|
if (firstPage)
|
||||||
|
{
|
||||||
|
OnDebug?.Invoke($"Starface Kontakt-Detail (1. Kontakt):\n{detailObj.ToString(Formatting.Indented)}");
|
||||||
firstPage = false;
|
firstPage = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var item in array)
|
contacts.Add(MapFromStarface(detailObj));
|
||||||
contacts.Add(MapFromStarface(item));
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
|
||||||
if (array.Count < pageSize) break;
|
if (array.Count < pageSize) break;
|
||||||
page++;
|
page++;
|
||||||
|
|||||||
@@ -7,9 +7,9 @@
|
|||||||
<AssemblyTitle>Starface Outlook Sync</AssemblyTitle>
|
<AssemblyTitle>Starface Outlook Sync</AssemblyTitle>
|
||||||
<Company>HackerSoft - Hacker-Net Telekommunikation</Company>
|
<Company>HackerSoft - Hacker-Net Telekommunikation</Company>
|
||||||
<Product>Starface Outlook Sync</Product>
|
<Product>Starface Outlook Sync</Product>
|
||||||
<Version>0.0.0.10</Version>
|
<Version>0.0.0.11</Version>
|
||||||
<AssemblyVersion>0.0.0.10</AssemblyVersion>
|
<AssemblyVersion>0.0.0.11</AssemblyVersion>
|
||||||
<FileVersion>0.0.0.10</FileVersion>
|
<FileVersion>0.0.0.11</FileVersion>
|
||||||
<Description>Synchronisiert Outlook-Kontakte mit Starface Telefonanlage</Description>
|
<Description>Synchronisiert Outlook-Kontakte mit Starface Telefonanlage</Description>
|
||||||
<Copyright>Stefan Hacker - HackerSoft</Copyright>
|
<Copyright>Stefan Hacker - HackerSoft</Copyright>
|
||||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace StarfaceOutlookSync.UI
|
|||||||
|
|
||||||
var lblVersion = new Label
|
var lblVersion = new Label
|
||||||
{
|
{
|
||||||
Text = "Version 0.0.0.10",
|
Text = "Version 0.0.0.11",
|
||||||
Left = 0, Top = 56, Width = 340, Height = 20,
|
Left = 0, Top = 56, Width = 340, Height = 20,
|
||||||
TextAlign = ContentAlignment.MiddleCenter,
|
TextAlign = ContentAlignment.MiddleCenter,
|
||||||
ForeColor = Color.Gray
|
ForeColor = Color.Gray
|
||||||
|
|||||||
Reference in New Issue
Block a user