Skip to content

Instantly share code, notes, and snippets.

View Kikimora's full-sized avatar

Andrey Verbin Kikimora

View GitHub Profile
enum Tab { Summary, Allocation, Transaction }
enum Range { All, YtD, MtD, D }
enum Role { RM, User }
class AssetManager {}
class Account {}
class OverviewModel
{
struct FetchRequest
public enum TransactionStatus { Pending, Mined }
public enum Network { Bitcoin, Ethereum }
public class TransactionDto
{
public string Id { get; set; }
public DateTime Timestamp { get; set; }
public decimal Amount { get; set; }
public TransactionStatus Status { get; set; }
public enum Network { Bitcoin, Ethereum }
//This interface hides ethereum/bitcoin inconsistencies and provides unified interface to view model.
//This make sense only until ETH/BTC has very similar UI and workflow.
//This interface is private to SendViewModel since it is designed with it specific tasks in mind.
interface ISendRequest
{
decimal AvailableFunds { get; }
string Recipient { get; set; }
decimal Fee { get; set; }
public enum Network { Bitcoin, Ethereum }
public interface IWeakListener
{
void OnMessage(Notification notification);
}
public interface ISendStrategy
{
public enum Network { Bitcoin, Ethereum }
public interface IWeakListener
{
void OnMessage(Notification notification);
}
public class SendModel : DataContext, IWeakListener
{
[Register("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
public override UIWindow Window
{
get;
set;
}
public EmbeddedSafariLoginPage LoginPage { get; private set; }
using System;
using System.Collections.Generic;
using System.Drawing;
using Qoden.Util;
using Qoden.Validation;
namespace Qoden.UI
{
public enum LinearLayoutDirection
{
using System;
using System.Collections.Generic;
using System.Drawing;
using Qoden.Util;
using Qoden.Validation;
namespace Qoden.UI
{
public enum LinearLayoutDirection
{
#if __IOS__
using PlatformView = UIKit.UIView;
using PlatformViewGroup = UIKit.UIView;
using PlatformTextArea = UIKit.UITextView;
#endif
#if __ANDROID__
using PlatformView = Android.Views.View;
using PlatformViewGroup = Android.Views.ViewGroup;
using PlatformTextArea = Android.Widgets.EditText;
#endif
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Threading.Tasks;
using Avend.API.Infrastructure;
using Avend.API.Infrastructure.Validation;
using Avend.API.Model;
using Avend.API.Services.Profile;
using Avend.API.Validation.Util;
using Microsoft.EntityFrameworkCore;