-
-
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-285): add small-talk mobile apps
Merge pull request #288 from live-dev999/live-dev999/issue285
- Loading branch information
Showing
27 changed files
with
28,288 additions
and
4,783 deletions.
There are no files selected for viewing
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
32,127 changes: 27,399 additions & 4,728 deletions
32,127
...Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk.Android/Resources/Resource.designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
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
26 changes: 26 additions & 0 deletions
26
...pps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk/Converters/InversOwnerConverter.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,26 @@ | ||
using System; | ||
using System.Globalization; | ||
using Xamarin.Forms; | ||
|
||
namespace O2NextGen.SmallTalk.Core.Converters | ||
{ | ||
public class InversOwnerConverter : IValueConverter | ||
{ | ||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
if (value == null) | ||
return false; | ||
var val = int.Parse(value.ToString()); | ||
if (val == 1) | ||
{ | ||
return true; | ||
} | ||
return false; | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.Text; | ||
using Xamarin.Forms; | ||
|
||
namespace O2NextGen.SmallTalk.Core.Converters | ||
{ | ||
public class OwnerConverter : IValueConverter | ||
{ | ||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
if(value == null) | ||
return true; | ||
var val = int.Parse(value.ToString()); | ||
if (val == 1) | ||
{ | ||
return false; | ||
} | ||
return true; | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...pps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk/Extensions/DictionaryExtensions.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,17 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace O2NextGen.SmallTalk.Core.Extensions | ||
{ | ||
public static class DictionaryExtensions | ||
{ | ||
public static (bool ContainsKeyAndValue, bool Value) GetValueAsBool(this IDictionary<string, string> dictionary, string key) | ||
{ | ||
return dictionary.ContainsKey(key) && bool.TryParse(dictionary[key], out var parsed) ? (true, parsed) : (false, default); | ||
} | ||
|
||
public static (bool ContainsKeyAndValue, int Value) GetValueAsInt(this IDictionary<string, string> dictionary, string key) | ||
{ | ||
return dictionary.ContainsKey(key) && int.TryParse(dictionary[key], out var parsed) ? (true, parsed) : (false, default); | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...leApps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk/O2NextGen.SmallTalk.Core.csproj
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,30 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<ProduceReferenceAssembly>true</ProduceReferenceAssembly> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<DebugType>portable</DebugType> | ||
<DebugSymbols>true</DebugSymbols> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2401" /> | ||
<PackageReference Include="Xamarin.Essentials" Version="1.7.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\..\SDKs\O2NextGen.Sdk.Models\O2NextGen.Sdk.Models.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Update="Views\ChatDetailView.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="Views\ChatView.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
</Project> |
17 changes: 0 additions & 17 deletions
17
src/MobileApps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk/O2NextGen.SmallTalk.csproj
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
...obileApps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk/Services/Chat/ChatService.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,45 @@ | ||
using O2NextGen.Sdk.NetCore.Models.smalltalk; | ||
using System; | ||
using System.Collections.ObjectModel; | ||
using System.Threading.Tasks; | ||
|
||
namespace O2NextGen.SmallTalk.Core.Services.Chat | ||
{ | ||
public class ChatService : IChatService | ||
{ | ||
public Task AddMessageToSessionAsync(string message) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public void GetByIdMessage(long sessionId, long id) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<ObservableCollection<ChatMessage>> GetMessageAsync() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public void GetMessages(long sessionId) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<ChatSession> GetSessionAsync() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<ObservableCollection<ChatSession>> GetSessionsAsync() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public void Sessions(long sessionId) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
Oops, something went wrong.