From a080bf85e009b4689a195dd2072a43fa581ac40b Mon Sep 17 00:00:00 2001 From: doryumusharon Date: Fri, 20 Nov 2020 16:43:46 +0000 Subject: [PATCH] adding more comments to respective portions of code --- .../ExpenseTracker.Android.csproj | 3 + .../Resources/Resource.designer.cs | 97 +++++++++--------- .../Resources/drawable/avatar.png | Bin 0 -> 5925 bytes ExpenseTracker.sln | 2 +- ExpenseTracker/model/CatergoryAmount.cs | 1 + ExpenseTracker/model/ExpenseCategory.cs | 2 +- ExpenseTracker/model/SideDrawerMenu.cs | 1 + ExpenseTracker/model/expense.cs | 2 +- ExpenseTracker/model/user.cs | 1 + ExpenseTracker/viewModel/FirebaseHelper.cs | 8 +- ExpenseTracker/views/home/HomePage.xaml | 2 +- 11 files changed, 64 insertions(+), 55 deletions(-) create mode 100644 ExpenseTracker.Android/Resources/drawable/avatar.png diff --git a/ExpenseTracker.Android/ExpenseTracker.Android.csproj b/ExpenseTracker.Android/ExpenseTracker.Android.csproj index a51f116..0c3b095 100644 --- a/ExpenseTracker.Android/ExpenseTracker.Android.csproj +++ b/ExpenseTracker.Android/ExpenseTracker.Android.csproj @@ -169,5 +169,8 @@ + + + \ No newline at end of file diff --git a/ExpenseTracker.Android/Resources/Resource.designer.cs b/ExpenseTracker.Android/Resources/Resource.designer.cs index 6f353c6..a562b3e 100644 --- a/ExpenseTracker.Android/Resources/Resource.designer.cs +++ b/ExpenseTracker.Android/Resources/Resource.designer.cs @@ -10855,145 +10855,148 @@ namespace ExpenseTracker.Droid public const int add = 2131165274; // aapt resource value: 0x7F07005B - public const int avd_hide_password = 2131165275; + public const int avatar = 2131165275; // aapt resource value: 0x7F07005C - public const int avd_show_password = 2131165276; + public const int avd_hide_password = 2131165276; // aapt resource value: 0x7F07005D - public const int background = 2131165277; + public const int avd_show_password = 2131165277; // aapt resource value: 0x7F07005E - public const int bg = 2131165278; + public const int background = 2131165278; // aapt resource value: 0x7F07005F - public const int Capture2 = 2131165279; + public const int bg = 2131165279; // aapt resource value: 0x7F070060 - public const int cloudiness = 2131165280; + public const int Capture2 = 2131165280; // aapt resource value: 0x7F070061 - public const int dashboard = 2131165281; + public const int cloudiness = 2131165281; // aapt resource value: 0x7F070062 - public const int design_bottom_navigation_item_background = 2131165282; + public const int dashboard = 2131165282; // aapt resource value: 0x7F070063 - public const int design_fab_background = 2131165283; + public const int design_bottom_navigation_item_background = 2131165283; // aapt resource value: 0x7F070064 - public const int design_ic_visibility = 2131165284; + public const int design_fab_background = 2131165284; // aapt resource value: 0x7F070065 - public const int design_ic_visibility_off = 2131165285; + public const int design_ic_visibility = 2131165285; // aapt resource value: 0x7F070066 - public const int design_password_eye = 2131165286; + public const int design_ic_visibility_off = 2131165286; // aapt resource value: 0x7F070067 - public const int design_snackbar_background = 2131165287; + public const int design_password_eye = 2131165287; // aapt resource value: 0x7F070068 - public const int grid = 2131165288; + public const int design_snackbar_background = 2131165288; // aapt resource value: 0x7F070069 - public const int gridColor = 2131165289; + public const int grid = 2131165289; // aapt resource value: 0x7F07006A - public const int humidity = 2131165290; + public const int gridColor = 2131165290; // aapt resource value: 0x7F07006B - public const int ic_mtrl_chip_checked_black = 2131165291; + public const int humidity = 2131165291; // aapt resource value: 0x7F07006C - public const int ic_mtrl_chip_checked_circle = 2131165292; + public const int ic_mtrl_chip_checked_black = 2131165292; // aapt resource value: 0x7F07006D - public const int ic_mtrl_chip_close_circle = 2131165293; + public const int ic_mtrl_chip_checked_circle = 2131165293; // aapt resource value: 0x7F07006E - public const int list = 2131165294; + public const int ic_mtrl_chip_close_circle = 2131165294; // aapt resource value: 0x7F07006F - public const int listColor = 2131165295; + public const int list = 2131165295; // aapt resource value: 0x7F070070 - public const int logo = 2131165296; + public const int listColor = 2131165296; // aapt resource value: 0x7F070071 - public const int menu = 2131165297; + public const int logo = 2131165297; // aapt resource value: 0x7F070072 - public const int mtrl_snackbar_background = 2131165298; + public const int menu = 2131165298; // aapt resource value: 0x7F070073 - public const int mtrl_tabs_default_indicator = 2131165299; + public const int mtrl_snackbar_background = 2131165299; // aapt resource value: 0x7F070074 - public const int navigation_empty_icon = 2131165300; + public const int mtrl_tabs_default_indicator = 2131165300; // aapt resource value: 0x7F070075 - public const int notification_action_background = 2131165301; + public const int navigation_empty_icon = 2131165301; // aapt resource value: 0x7F070076 - public const int notification_bg = 2131165302; + public const int notification_action_background = 2131165302; // aapt resource value: 0x7F070077 - public const int notification_bg_low = 2131165303; + public const int notification_bg = 2131165303; // aapt resource value: 0x7F070078 - public const int notification_bg_low_normal = 2131165304; + public const int notification_bg_low = 2131165304; // aapt resource value: 0x7F070079 - public const int notification_bg_low_pressed = 2131165305; + public const int notification_bg_low_normal = 2131165305; // aapt resource value: 0x7F07007A - public const int notification_bg_normal = 2131165306; + public const int notification_bg_low_pressed = 2131165306; // aapt resource value: 0x7F07007B - public const int notification_bg_normal_pressed = 2131165307; + public const int notification_bg_normal = 2131165307; // aapt resource value: 0x7F07007C - public const int notification_icon_background = 2131165308; + public const int notification_bg_normal_pressed = 2131165308; // aapt resource value: 0x7F07007D - public const int notification_template_icon_bg = 2131165309; + public const int notification_icon_background = 2131165309; // aapt resource value: 0x7F07007E - public const int notification_template_icon_low_bg = 2131165310; + public const int notification_template_icon_bg = 2131165310; // aapt resource value: 0x7F07007F - public const int notification_tile_bg = 2131165311; + public const int notification_template_icon_low_bg = 2131165311; // aapt resource value: 0x7F070080 - public const int notify_panel_notification_icon_bg = 2131165312; + public const int notification_tile_bg = 2131165312; // aapt resource value: 0x7F070081 - public const int overlay = 2131165313; + public const int notify_panel_notification_icon_bg = 2131165313; // aapt resource value: 0x7F070082 - public const int place = 2131165314; + public const int overlay = 2131165314; // aapt resource value: 0x7F070083 - public const int pressure = 2131165315; + public const int place = 2131165315; // aapt resource value: 0x7F070084 - public const int profile = 2131165316; + public const int pressure = 2131165316; // aapt resource value: 0x7F070085 - public const int settings = 2131165317; + public const int profile = 2131165317; // aapt resource value: 0x7F070086 - public const int tooltip_frame_dark = 2131165318; + public const int settings = 2131165318; // aapt resource value: 0x7F070087 - public const int tooltip_frame_light = 2131165319; + public const int tooltip_frame_dark = 2131165319; // aapt resource value: 0x7F070088 - public const int weather = 2131165320; + public const int tooltip_frame_light = 2131165320; // aapt resource value: 0x7F070089 - public const int wind = 2131165321; + public const int weather = 2131165321; + + // aapt resource value: 0x7F07008A + public const int wind = 2131165322; static Drawable() { diff --git a/ExpenseTracker.Android/Resources/drawable/avatar.png b/ExpenseTracker.Android/Resources/drawable/avatar.png new file mode 100644 index 0000000000000000000000000000000000000000..7361448d15666c04e15edfcecb7bdb2b23171e9b GIT binary patch literal 5925 zcmV+=7ux8FP)gwX+;!jglMoUadPESKf zNzu~M&Cbq+hlsknyTrxC+uYojnVDWMGSe}J5xo|Bc9rKhOGp#u{D02XCQL_t(|ob8>7cB8l!MVW*KBQw~s9cQjohX4P< zr+XzpV(p#gj$WE#Rg zh&AxbAV%Pqfo^r!5y8Je{sl5?AmU#j|A%J?9%UeK1U8Tk5D20J2mTJ?1|6X|P4wLtamtCh-i z^HJcL(UAv0loroBIPW=)VGvj)@ONQgT|#UDjCN8%TtPBsw7a@@=N$Sk)lk)c#gy4l zy+Sn*1%VBOZl8;^5kU*m?0KX9Obm@%C2(@`5=awR4Kadhb`s7xb&uf(QfRg6zaS4! zAW&?z3k340A)$vaeRiD815T6TVTISR%0mSL5vXQ2fGA)H5+O$5>gpu3yG#hJ4hZJq zNdvqFp#k%#Afa!0+805qGs$06OCbW4C^XaszD~#~m^l!hSfdDQgLFV@kgJa@x-bs~ zQT9a{L_n~2@M57MFhBrsz>SFpQNzq~$EoT^gK(_}4ywA&K(6(Oz%&FJ0tEasEZ#=x z=?I#TMjQ1@gJg~8A%*v8ATEI;&?XF32#N>eXf~GvkqS5q1wf!cy%bV_unp9J*k#dm zc__$sFpI%oDns>y)htFs&T3nxp>RaDD z)iF>UY=|CwD}XLkAP4{$;M7PA0OR0%au>=F=H$?y#yG@=F^(d<32?c_LPPkST^2zT zif_DHVH6>lhXH|kxFAZvp>N21m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(~Nb_pvaku z;rn;D->ihdeHBzchVRBah>8H4}jak<{?cQ3yxo{#6F zpX-LUjyyN7RDtckARfuB)IX@W~9mu@ZGXDdC{5wOYI74RZRPiXA zeGyz#K5X(%)ioRVZ;!S?oCC90={X>6(7Tv=fxV@vegxeCeg=34#AkpxFiP(9UqkVYyzU(%E4C&17C6NCCTJVz;&}K#^00000NkvXX Hu0mjfHWh$K literal 0 HcmV?d00001 diff --git a/ExpenseTracker.sln b/ExpenseTracker.sln index fb9644a..4d19686 100644 --- a/ExpenseTracker.sln +++ b/ExpenseTracker.sln @@ -7,7 +7,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExpenseTracker.Android", "E EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExpenseTracker.iOS", "ExpenseTracker.iOS\ExpenseTracker.iOS.csproj", "{A3054586-0D0F-4EA0-9BFD-39E48715C6B7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExpenseTracker", "ExpenseTracker\ExpenseTracker.csproj", "{C39DA104-B647-405A-9934-91A9E9553D1D}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExpenseTracker", "ExpenseTracker\ExpenseTracker.csproj", "{C39DA104-B647-405A-9934-91A9E9553D1D}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/ExpenseTracker/model/CatergoryAmount.cs b/ExpenseTracker/model/CatergoryAmount.cs index a5e19f3..75d6ac4 100644 --- a/ExpenseTracker/model/CatergoryAmount.cs +++ b/ExpenseTracker/model/CatergoryAmount.cs @@ -4,6 +4,7 @@ using System.Text; namespace ExpenseTracker.model { + //this class specifies each category with it's total amount by an ID class CatergoryAmount { diff --git a/ExpenseTracker/model/ExpenseCategory.cs b/ExpenseTracker/model/ExpenseCategory.cs index 209107a..b5e1f5d 100644 --- a/ExpenseTracker/model/ExpenseCategory.cs +++ b/ExpenseTracker/model/ExpenseCategory.cs @@ -4,7 +4,7 @@ using System.Text; namespace ExpenseTracker.model { - //this model describes the type of data to be taken for each expense category + //this model describes the type of data to be taken(per user) for each expense category public class ExpenseCategory { public int id { get; set; } diff --git a/ExpenseTracker/model/SideDrawerMenu.cs b/ExpenseTracker/model/SideDrawerMenu.cs index 49aa3ac..0af44a0 100644 --- a/ExpenseTracker/model/SideDrawerMenu.cs +++ b/ExpenseTracker/model/SideDrawerMenu.cs @@ -4,6 +4,7 @@ using System.Text; namespace ExpenseTracker.model { + // class SideDrawerMenu { diff --git a/ExpenseTracker/model/expense.cs b/ExpenseTracker/model/expense.cs index 12e26f8..4a66f7c 100644 --- a/ExpenseTracker/model/expense.cs +++ b/ExpenseTracker/model/expense.cs @@ -4,7 +4,7 @@ using System.Text; namespace ExpenseTracker.model { - //describes the type of data to be taken for expenses per user + //describes the type of data to be taken from the user for expenses . This is tagged to a particular user class Expense { public int expenseCategory { get; set; } diff --git a/ExpenseTracker/model/user.cs b/ExpenseTracker/model/user.cs index 3cb186b..ab52f48 100644 --- a/ExpenseTracker/model/user.cs +++ b/ExpenseTracker/model/user.cs @@ -4,6 +4,7 @@ using System.Text; namespace ExpenseTracker.model { + //describes the type of data taken for user authentication public class Users { public string Email { get; set; } diff --git a/ExpenseTracker/viewModel/FirebaseHelper.cs b/ExpenseTracker/viewModel/FirebaseHelper.cs index 458e27f..d52f88b 100644 --- a/ExpenseTracker/viewModel/FirebaseHelper.cs +++ b/ExpenseTracker/viewModel/FirebaseHelper.cs @@ -14,7 +14,7 @@ namespace ExpenseTracker.viewModel { FirebaseClient firebase = new FirebaseClient("https://expensetracker-cdaa4.firebaseio.com"); - //get all Expenses + //get all Expenses ; specifies a list of all the existing expenses for the user public async Task> GetAllExpense(String usermail) { @@ -31,7 +31,7 @@ namespace ExpenseTracker.viewModel }).Reverse().ToList(); } - //all New Expense + //all New Expense; adds new expenses public async Task AddExpense(double amount, string narration, int expenseCategory, string id, String email) { @@ -89,7 +89,7 @@ namespace ExpenseTracker.viewModel - //get all categories + //get all categories; specifies a list of all existing categories of expenses per user public async Task> GetAllCategory(String useremail) { @@ -155,7 +155,7 @@ namespace ExpenseTracker.viewModel //Queries - //getting total amount of expenses + //getting total amount of all expenses public async Task GetTotalAmountOfExpense(string email) { double totalAmount=0.0; diff --git a/ExpenseTracker/views/home/HomePage.xaml b/ExpenseTracker/views/home/HomePage.xaml index a9aada0..6a4911a 100644 --- a/ExpenseTracker/views/home/HomePage.xaml +++ b/ExpenseTracker/views/home/HomePage.xaml @@ -12,7 +12,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" -