-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pr: issue-291): include signalr for smalltalk mobile app
Merge pull request #292 from live-dev999/live-dev999/issue291
- Loading branch information
Showing
40 changed files
with
645 additions
and
95 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
src/MobileApps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk.Android/MainActivity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
using System; | ||
|
||
| ||
using Android.App; | ||
using Android.Content.PM; | ||
using Android.Runtime; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...pps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk.Android/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk.Android/Resources/Resource.designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
src/MobileApps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk.UWP/App.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 1 addition & 16 deletions
17
src/MobileApps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk.UWP/MainPage.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
src/MobileApps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk.iOS/AppDelegate.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
| ||
using Foundation; | ||
using UIKit; | ||
|
||
|
7 changes: 1 addition & 6 deletions
7
src/MobileApps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk.iOS/Main.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...ileApps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk.iOS/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...obileApps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk/Converters/OwnerConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk/Exceptions/ServiceAuthenticationException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
|
||
namespace O2NextGen.SmallTalk.Core.Exceptions | ||
{ | ||
public class ServiceAuthenticationException : Exception | ||
{ | ||
public string Content { get; } | ||
|
||
public ServiceAuthenticationException() | ||
{ | ||
} | ||
|
||
public ServiceAuthenticationException(string content) | ||
{ | ||
Content = content; | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...Apps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk/Extensions/ObservableExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
|
||
namespace O2NextGen.SmallTalk.Core.Extensions | ||
{ | ||
public static class ObservableExtension | ||
{ | ||
public static ObservableCollection<T> ToObservableCollection<T>(this IEnumerable<T> source) | ||
{ | ||
ObservableCollection<T> collection = new ObservableCollection<T>(); | ||
|
||
foreach (T item in source) | ||
{ | ||
collection.Add(item); | ||
} | ||
|
||
return collection; | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/MobileApps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk/GlobalSetting.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace O2NextGen.SmallTalk.Core | ||
{ | ||
public class GlobalSetting | ||
{ | ||
public string GatewayChatEndpoint { get; set; } = "https://api-smalltalk.o2bus.com"; | ||
public static GlobalSetting Instance { get; } = new GlobalSetting(); | ||
public string HubConnectionURL { get; set; } = "http://localhost:5000/chathub"; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/MobileApps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk/Helpers/UriHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Linq; | ||
|
||
namespace O2NextGen.SmallTalk.Core.Helpers | ||
{ | ||
public static class UriHelper | ||
{ | ||
public static string CombineUri(params string[] uriParts) | ||
{ | ||
string uri = string.Empty; | ||
if (uriParts != null && uriParts.Count() > 0) | ||
{ | ||
char[] trims = new char[] { '\\', '/' }; | ||
uri = (uriParts[0] ?? string.Empty).TrimEnd(trims); | ||
for (int i = 1; i < uriParts.Count(); i++) | ||
{ | ||
uri = string.Format("{0}/{1}", uri.TrimEnd(trims), (uriParts[i] ?? string.Empty).TrimStart(trims)); | ||
} | ||
} | ||
return uri; | ||
} | ||
|
||
internal static object CombineUri(object gatewayChatEndpoint, string v) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.