using System; using System.Threading.Tasks; namespace TINK.View { public interface IViewService { /// Displays alert message. /// Title of message. /// Message to display. /// Text of button. Task DisplayAlert( string title, string message, string cancel); /// Displays alert message. /// Title of message. /// Message to display. /// Detailed error description. /// Text of button. Task DisplayAdvancedAlert( string title, string message, string details, string cancel); /// Displays alert message. /// Title of message. /// Message to display. /// Text of accept button. /// Text of button. /// True if user pressed accept. Task DisplayAlert(string p_strTitle, string p_strMessage, string p_strAccept, string p_strCancel); /// Displays an action sheet. /// Title of message. /// Message to display. /// Text of button. /// /// Buttons holding options to select. /// T Task DisplayActionSheet(string title, string cancel, string destruction, params string[] buttons); /// Show a page. /// Type of page to show. /// Title of page to show. void ShowPage(ViewTypes type, string title = null); /// Pushes a page onto the stack. /// Page to display. Task PushAsync(ViewTypes typeOfPage); /// Pushes a page onto the modal stack. /// Page to display. Task PushModalAsync(ViewTypes typeOfPage); /// Pushes a page onto the modal stack. Task PopModalAsync(); Task DisplayUserFeedbackPopup(); /// /// Feedback given by user when returning bike. /// public interface IUserFeedback { /// /// Holds whether bike is broken or not. /// bool IsBikeBroken { get; set; } /// /// Holds either /// - general feedback /// - error description of broken bike /// or both. /// string Message { get; set; } } } }