Skip to content

Instantly share code, notes, and snippets.

@JoeM-RP
Last active August 15, 2018 03:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeM-RP/438d7a51fca1cc059241c1b0029dd816 to your computer and use it in GitHub Desktop.
Save JoeM-RP/438d7a51fca1cc059241c1b0029dd816 to your computer and use it in GitHub Desktop.
using System;
using ReactiveUI;
namespace RxUIForms.Models
{
public class Interactions
{
public static readonly Interaction<Exception, ErrorRecoveryOption> Errors = new Interaction<Exception, ErrorRecoveryOption>();
public static readonly Interaction<AlertArgs, bool> Alerts = new Interaction<AlertArgs, bool>();
public static readonly Interaction<ActionSheetArgs, string> Actions = new Interaction<ActionSheetArgs, string>();
}
public enum AlertActionOptions
{
Ok,
Cancel
}
public enum ErrorRecoveryOption
{
Retry,
Abort
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment