Skip to content
Permalink
Browse files
adding more comments to respective portions of code
  • Loading branch information
doryumusharon committed Nov 20, 2020
1 parent 25c60a7 commit a080bf85e009b4689a195dd2072a43fa581ac40b
Show file tree
Hide file tree
Showing 11 changed files with 64 additions and 55 deletions.
@@ -169,5 +169,8 @@
<ItemGroup>
<AndroidResource Include="Resources\drawable\background.jpg" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\avatar.png" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>

Some generated files are not rendered by default. Learn more.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -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
@@ -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
{

@@ -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; }
@@ -4,6 +4,7 @@ using System.Text;

namespace ExpenseTracker.model
{
//
class SideDrawerMenu
{

@@ -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; }
@@ -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; }
@@ -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<List<Expense>> 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<List<ExpenseCategory>> 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<double> GetTotalAmountOfExpense(string email)
{
double totalAmount=0.0;
@@ -12,7 +12,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Horizontal" Margin="5,50,5,5"
BackgroundColor="White" HorizontalOptions="FillAndExpand">
<Image Source="logo.png" BackgroundColor="Transparent" HeightRequest="100"
<Image Source="avatar.png" BackgroundColor="Transparent" HeightRequest="100"
WidthRequest="100" VerticalOptions="Center" />

<StackLayout Orientation="Vertical">

0 comments on commit a080bf8

Please sign in to comment.