From f1c836480e7b9c9fed310ef65eb91cce5948c805 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 12 Jan 2025 10:46:08 +0545 Subject: [PATCH] Helpline and Infomation Update --- Justice.csproj | 6 ++ Justice.csproj.user | 6 ++ Models/Helpline.cs | 15 +++++ Services/HelplineService.cs | 36 ++++++++++++ Views/DashboardPage.xaml | 6 +- Views/DashboardPage.xaml.cs | 13 +++-- Views/HelplinePage.xaml | 48 ++++++++++++++++ Views/HelplinePage.xaml.cs | 39 +++++++++++++ Views/InformationCenterPage.xaml | 53 ++++++++++++++++++ Views/InformationCenterPage.xaml.cs | 9 +++ bin/Debug/net9.0-android/Justice.dll | Bin 441856 -> 460288 bytes bin/Debug/net9.0-android/Justice.pdb | Bin 45900 -> 48888 bytes .../com.companyname.justice-Signed.apk | Bin 13247700 -> 13247700 bytes .../com.companyname.justice-Signed.apk.idsig | Bin 112051 -> 112051 bytes .../com.companyname.justice.apk | Bin 13138760 -> 13138760 bytes .../net9.0-ios/iossimulator-x64/Justice.dll | Bin 439808 -> 459776 bytes .../net9.0-ios/iossimulator-x64/Justice.pdb | Bin 39152 -> 42620 bytes .../maccatalyst-x64/Justice.dll | Bin 439808 -> 459776 bytes .../maccatalyst-x64/Justice.pdb | Bin 39044 -> 42508 bytes .../win10-x64/Justice.dll | Bin 687616 -> 708096 bytes .../win10-x64/Justice.exe | Bin 266752 -> 266752 bytes .../win10-x64/Justice.pdb | Bin 64224 -> 68460 bytes 22 files changed, 222 insertions(+), 9 deletions(-) create mode 100644 Models/Helpline.cs create mode 100644 Services/HelplineService.cs create mode 100644 Views/HelplinePage.xaml create mode 100644 Views/HelplinePage.xaml.cs create mode 100644 Views/InformationCenterPage.xaml create mode 100644 Views/InformationCenterPage.xaml.cs diff --git a/Justice.csproj b/Justice.csproj index 5c4cf93..113dae0 100644 --- a/Justice.csproj +++ b/Justice.csproj @@ -81,9 +81,15 @@ MSBuild:Compile + + MSBuild:Compile + MSBuild:Compile + + MSBuild:Compile + MSBuild:Compile diff --git a/Justice.csproj.user b/Justice.csproj.user index 94c866c..c1f09fa 100644 --- a/Justice.csproj.user +++ b/Justice.csproj.user @@ -20,9 +20,15 @@ Designer + + Designer + Designer + + Designer + Designer diff --git a/Models/Helpline.cs b/Models/Helpline.cs new file mode 100644 index 0000000..16cf8a1 --- /dev/null +++ b/Models/Helpline.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Justice.Models +{ + public class Helpline + { + public string NumberType { get; set; } + public string AuthorityType { get; set; } + public string Number { get; set; } + } +} diff --git a/Services/HelplineService.cs b/Services/HelplineService.cs new file mode 100644 index 0000000..05bd1ce --- /dev/null +++ b/Services/HelplineService.cs @@ -0,0 +1,36 @@ +using Justice.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Justice.Services +{ + public class HelplineService + { + public static List GetHelplines() + { + return new List + { + new Helpline { NumberType = "General Emergency", AuthorityType = "Police", Number = "100" }, + new Helpline { NumberType = "General Emergency", AuthorityType = "Fire Brigade", Number = "101" }, + new Helpline { NumberType = "General Emergency", AuthorityType = "Ambulance", Number = "102" }, + new Helpline { NumberType = "General Emergency", AuthorityType = "Traffic Control", Number = "103" }, + new Helpline { NumberType = "General Emergency", AuthorityType = "Child Missing Emergency", Number = "104" }, + new Helpline { NumberType = "Army And Security", AuthorityType = "Comission for Investigation of Abuse of Authority", Number = "107" }, + new Helpline { NumberType = "Army And Security", AuthorityType = "Armed Police Force", Number = "1114" }, + new Helpline { NumberType = "Army And Security", AuthorityType = "Nepal Army Headquarter", Number = "1113" }, + new Helpline { NumberType = "Health and Child", AuthorityType = "Child Rights", Number = "1098" }, + new Helpline { NumberType = "Health and Child", AuthorityType = "Health Emergency", Number= "1115" }, + new Helpline { NumberType = "Health and Child", AuthorityType = "National Women Commission", Number = "1145" }, + new Helpline { NumberType = "Health and Child", AuthorityType = "Human Trafficking Bureau", Number = "1177" }, + new Helpline { NumberType = "Public Service", AuthorityType = "Nepal Electricity Authority", Number = "1150" }, + new Helpline { NumberType = "Public Service", AuthorityType = "Nepal Red Cross Service", Number = "1130" }, + new Helpline { NumberType = "Disaster and Tourism", AuthorityType = "Natural Disaster", Number= "1149" }, + new Helpline { NumberType = "Disaster and Tourism", AuthorityType = "Tourist Police", Number = "1144" }, + new Helpline { NumberType = "General Inquiries", AuthorityType = "Telephone Enquiry", Number = "197" }, + }; + } + } +} diff --git a/Views/DashboardPage.xaml b/Views/DashboardPage.xaml index 25cbfc9..92adae4 100644 --- a/Views/DashboardPage.xaml +++ b/Views/DashboardPage.xaml @@ -65,7 +65,7 @@