public Task <ICase> GetTheCase(string trimmedCaseNumber) { //Thread.Sleep(2000); var sfcase = new SFCase { Id = "caseId", CaseNumber = trimmedCaseNumber, Description = "Lorem Ipsum is simplyas!", CaseOwner = new SFPerson { Id = "asdfew1231d", Name = "Admin Support Queue" }, Priority = Priority.High, RecordType = new SFRecordType(), RecordTypeId = "qweqwe32113", Status = new ImplementationModel.SalesForce.SFStatus { Value = ImplementationModel.SFStatusE.New }, Subject = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. since the 1500s, when an unknown printer took a galley the printing and typesetting industry. since the 1500s, when an unknown printer took a galley the printing and typesetting industry. since the 1500s, when an unknown printer took a galley the printing and typesetting industry. since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset!", SubStatus = SFSubStatus.InSprint, Type = "Admin Supp Q Case" }; return(ConnectionHelper.FormTask <ICase>(sfcase)); }
public NewItemPage() { InitializeComponent(); Item = new SFCase { Subject = "Item name", Description = "This is an item description." }; BindingContext = this; }
public ItemDetailViewModel(SFCase item = null) { Title = item?.CaseNumber; Priority = "Priority: " + item.Priority.ToString(); Status = "Status: " + ((SFStatus)item.Status).Value.ToString(); SubStatus = "SubStatus: " + item.SubStatusText; CreatedBy = "Created By: " + item.CreatedBy.GetFormattedName(); Date = "Date: " + item.CreatedDate.ToString(); CaseOwner = "Case Owner: " + item.CaseOwner.GetFormattedName(); Item = item; BuildAttachments = new AsyncCommand(DoBuildAttachments); BuildComments = new AsyncCommand(DoBuildComments); DownloadAndOpen = new Command <SFAttachment>(async(SFAttachment attachment) => await DoDownloadAndOpen(attachment)); }
private async void DoOpenManualQueuesPage(object obj) { SFCase sfCase = obj as SFCase; await Navigation.PushAsync(new ManualTabPickerPage(sfCase)); }
private void DoRemoveManualCase(SFCase sfcase) { _homeMenuItem.CasesList.Remove(sfcase.CaseNumber); viewModel.Items.Remove(sfcase); ManualMenuDataStore.Instance.SaveState(); }
public ManualTabPickerPage(SFCase sfCase) { InitializeComponent(); _sfCase = sfCase; BindingContext = _viewModel = new ManualTabPickerViewModel(); }