From 1863191be992eeb3e8f1b0d26569af2ac4096fa0 Mon Sep 17 00:00:00 2001 From: AK-47 Date: Mon, 3 Jul 2023 20:41:30 +0900 Subject: [PATCH 1/3] finished this project --- PleaseReadMyAnswer.md | 51 +++++++++++++ UndoAssessment/UndoAssessment/AppShell.xaml | 3 +- .../UndoAssessment/UndoAssessment.csproj | 3 +- .../ViewModels/CateViewModel.cs | 17 +++++ .../UndoAssessment/Views/CatePage.xaml | 34 +++++++++ .../UndoAssessment/Views/CatePage.xaml.cs | 72 +++++++++++++++++++ 6 files changed, 178 insertions(+), 2 deletions(-) create mode 100644 PleaseReadMyAnswer.md create mode 100644 UndoAssessment/UndoAssessment/ViewModels/CateViewModel.cs create mode 100644 UndoAssessment/UndoAssessment/Views/CatePage.xaml create mode 100644 UndoAssessment/UndoAssessment/Views/CatePage.xaml.cs diff --git a/PleaseReadMyAnswer.md b/PleaseReadMyAnswer.md new file mode 100644 index 0000000..16b045c --- /dev/null +++ b/PleaseReadMyAnswer.md @@ -0,0 +1,51 @@ +# Assessment Finished By Manric Vilegas + +## Task 1 [4 hours] +I finshed this task in 30 minutes. +Please build and run it. + +## Task 2 [2 hours] + +- Content Management: +``` +Will the news content be managed from within the application or through a separate backend system? +Is there an existing content management system (CMS) in place for managing news articles? +Are there any specific features or functionalities required for managing and organizing the news content? +``` +- Source of News: +``` +Where will the news articles be sourced from? Are they written internally or obtained from external sources? +Is there a requirement to integrate with external APIs or news aggregation services to fetch news articles? +Do you have any preferred news sources or categories that should be prioritized? +``` +- User Experience: +``` +How should the news section be presented to the users? Should it be a list view, grid view, or any other specific layout? +Are there any design guidelines or wireframes available for the news section? +Is there a need for any additional interactive elements such as liking, sharing, or commenting on news articles? +``` +- Push Notifications: +``` +Do you want to send push notifications to users when new articles are posted? +If push notifications are required, do you have an existing push notification service or preference for a particular platform (e.g., Firebase Cloud Messaging, Azure Notification Hubs)? +``` +- Offline Access: +``` +Is there a requirement for users to access previously viewed news articles while offline? +Should the application cache news articles for offline reading, and if so, how many articles should be stored and for how long? +``` +- Localization: +``` +Do you require support for displaying news content in multiple languages? +Should the application automatically detect the user's language or provide language selection options? +``` +- Performance and Scalability: +``` +Do you anticipate a large number of users accessing the news section simultaneously? +Are there any performance or scalability requirements, such as handling high traffic or optimizing image loading? +``` +- Analytics and Reporting: +``` +Do you need any tracking or analytics features to monitor user engagement with news articles, such as views, likes, or shares? +Are there any specific metrics or reports that you would like to capture for the news section? +``` \ No newline at end of file diff --git a/UndoAssessment/UndoAssessment/AppShell.xaml b/UndoAssessment/UndoAssessment/AppShell.xaml index 9b3603b..9a5998d 100644 --- a/UndoAssessment/UndoAssessment/AppShell.xaml +++ b/UndoAssessment/UndoAssessment/AppShell.xaml @@ -1,4 +1,4 @@ - + + diff --git a/UndoAssessment/UndoAssessment/UndoAssessment.csproj b/UndoAssessment/UndoAssessment/UndoAssessment.csproj index 95a3587..1faf093 100644 --- a/UndoAssessment/UndoAssessment/UndoAssessment.csproj +++ b/UndoAssessment/UndoAssessment/UndoAssessment.csproj @@ -1,8 +1,9 @@ - + netstandard2.0 true + true diff --git a/UndoAssessment/UndoAssessment/ViewModels/CateViewModel.cs b/UndoAssessment/UndoAssessment/ViewModels/CateViewModel.cs new file mode 100644 index 0000000..c7f4b0a --- /dev/null +++ b/UndoAssessment/UndoAssessment/ViewModels/CateViewModel.cs @@ -0,0 +1,17 @@ +using System; +using System.Windows.Input; +using Xamarin.Essentials; +using Xamarin.Forms; + +namespace UndoAssessment.ViewModels +{ + public class CateViewModel : BaseViewModel + { + public CateViewModel() + { + Title = "Assessment for Cate"; + } + + public ICommand OpenWebCommand { get; } + } +} diff --git a/UndoAssessment/UndoAssessment/Views/CatePage.xaml b/UndoAssessment/UndoAssessment/Views/CatePage.xaml new file mode 100644 index 0000000..042ba18 --- /dev/null +++ b/UndoAssessment/UndoAssessment/Views/CatePage.xaml @@ -0,0 +1,34 @@ + + + + + + + + + + #96d1ff + + + + + + + + + + + + + diff --git a/UndoAssessment/UndoAssessment/Views/UserFormPage.xaml.cs b/UndoAssessment/UndoAssessment/Views/UserFormPage.xaml.cs new file mode 100644 index 0000000..06e54d4 --- /dev/null +++ b/UndoAssessment/UndoAssessment/Views/UserFormPage.xaml.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using Xamarin.Forms; +using Xamarin.Forms.Xaml; + +using UndoAssessment.Models; +using UndoAssessment.ViewModels; + +namespace UndoAssessment.Views +{ + public partial class UserFormPage : ContentPage + { + public Item Item { get; set; } + + public UserFormPage() + { + InitializeComponent(); + BindingContext = new UserFormViewModel(); + } + } +}