/* Ċ Ġ* ĠCopyright Ġ( C ) Ġby ĠM inter Team . Ġ 2 0 2 0 Ċ Ġ* Ġ@ link Ġ< a Ġhref =" https :// github . com / M inter Team "> Org ĠGithub </ a > Ċ Ġ* Ġ@ link Ġ< a Ġhref =" https :// github . com / ed ward stock "> Maint ainer ĠGithub </ a > Ċ Ġ* Ċ Ġ* ĠThe ĠMIT ĠLicense Ċ Ġ* Ċ Ġ* ĠPermission Ġis Ġhereby Ġgranted , Ġfree Ġof Ġcharge , Ġto Ġany Ġperson Ġobtaining Ġa Ġcopy Ċ Ġ* Ġof Ġthis Ġsoftware Ġand Ġassociated Ġdocumentation Ġfiles Ġ( the Ġ" Software "), Ġto Ġdeal Ċ Ġ* Ġin Ġthe ĠSoftware Ġwithout Ġrestriction , Ġincluding Ġwithout Ġlimitation Ġthe Ġrights Ċ Ġ* Ġto Ġuse , Ġcopy , Ġmodify , Ġmerge , Ġpublish , Ġdistribute , Ġsublicense , Ġand / or Ġsell Ċ Ġ* Ġcopies Ġof Ġthe ĠSoftware , Ġand Ġto Ġpermit Ġpersons Ġto Ġwhom Ġthe ĠSoftware Ġis Ċ Ġ* Ġfurnished Ġto Ġdo Ġso , Ġsubject Ġto Ġthe Ġfollowing Ġconditions : Ċ Ġ* Ċ Ġ* ĠThe Ġabove Ġcopyright Ġnotice Ġand Ġthis Ġpermission Ġnotice Ġshall Ġbe Ġincluded Ġin Ċ Ġ* Ġall Ġcopies Ġor Ġsubstantial Ġportions Ġof Ġthe ĠSoftware . Ċ Ġ* Ċ Ġ* ĠTHE ĠSOFTWARE ĠIS ĠPROVIDED Ġ" AS ĠIS ", ĠWITHOUT ĠWARRANTY ĠOF ĠANY ĠKIND , ĠEXPRESS ĠOR Ċ Ġ* ĠIMPLIED , ĠINCLUDING ĠBUT ĠNOT ĠLIMITED ĠTO ĠTHE ĠWARRANTIES ĠOF ĠMERCHANTABILITY , Ċ Ġ* ĠFITNESS ĠFOR ĠA ĠPARTICULAR ĠPURPOSE ĠAND ĠNONINFRINGEMENT . ĠIN ĠNO ĠEVENT ĠSHALL ĠTHE Ċ Ġ* ĠAUTHORS ĠOR ĠCOPYRIGHT ĠHOLDERS ĠBE ĠLIABLE ĠFOR ĠANY ĠCLAIM , ĠDAMAGES ĠOR ĠOTHER Ċ Ġ* ĠLIABILITY , ĠWHETHER ĠIN ĠAN ĠACTION ĠOF ĠCONTRACT , ĠTORT ĠOR ĠOTHERWISE , ĠARISING ĠFROM , Ċ Ġ* ĠOUT ĠOF ĠOR ĠIN ĠCONNECTION ĠWITH ĠTHE ĠSOFTWARE ĠOR ĠTHE ĠUSE ĠOR ĠOTHER ĠDEALINGS ĠIN Ċ Ġ* ĠTHE ĠSOFTWARE . Ċ Ġ*/ Ċ package Ġnetwork . min ter . bip wallet . exchange . contract Ċ Ċ import Ġandroid . view . View Ċ import Ġandroidx . annotation . String Res Ċ import Ġcom . ed ward stock . input field . form . Input Wrapper Ċ import Ġm oxy . M vp View Ċ import Ġm oxy . view state . strategy . AddTo End Single Strategy Ċ import Ġm oxy . view state . strategy . One Execution State Strategy Ċ import Ġm oxy . view state . strategy . State Strategy Type Ċ import Ġnetwork . min ter . bip wallet . exchange . models . Exchange Amount Ċ import Ġnetwork . min ter . bip wallet . internal . dialogs . Dialog Executor Ċ import Ġnetwork . min ter . bip wallet . internal . mvp . Error View With Retry Ċ import Ġnetwork . min ter . bip wallet . sending . account . Selector Data Ċ import Ġnetwork . min ter . explorer . models . Coin Balance Ċ import Ġnetwork . min ter . explorer . models . Coin Item Ċ Ċ /** Ċ Ġ* Ġm inter - android - wallet . Ġ 2 0 1 9 Ċ Ġ* Ġ@ author ĠE du ard ĠMax im ov ich Ġ[ ed ward . v stock @ gmail . com ] Ċ Ġ*/ Ċ @ State Strategy Type ( AddTo End Single Strategy :: class ) Ċ interface ĠExchange View Ġ: ĠM vp View , ĠError View With Retry Ġ{ ĊĠĠĠ Ġ@ State Strategy Type ( One Execution State Strategy :: class ) ĊĠĠĠ Ġfun Ġstart Dialog ( executor : ĠDialog Executor ) ĊĠĠĠ Ġfun Ġset OnClick Maximum ( listener : ĠView . OnClickListener ) ĊĠĠĠ Ġfun Ġset OnClick Submit ( listener : ĠView . OnClickListener ) ĊĠĠĠ Ġfun Ġset TextChanged Listener ( listener : Ġ( Input Wrapper , ĠBoolean ) Ġ-> ĠUnit ) ĊĊĠĠĠ Ġ@ State Strategy Type ( One Execution State Strategy :: class ) ĊĠĠĠ Ġfun Ġstart Account Selector ( accounts : ĠList < Coin Balance >, Ġclick Listener : Ġ( Selector Data < Coin Balance >) Ġ-> ĠUnit ) ĊĠĠĠ Ġfun Ġset OnClick Select Account ( listener : ĠView . OnClickListener ) ĊĠĠĠ Ġfun ĠsetError ( field : ĠString , Ġmessage : ĠCharSequence ?) ĊĠĠĠ Ġfun Ġclear Errors () ĊĠĠĠ Ġfun Ġset Submit Enabled ( enabled : ĠBoolean ) ĊĠĠĠ Ġfun Ġset Form Validation Listener ( listener : Ġ( Boolean ) Ġ-> ĠUnit ) ĊĊĠĠĠ Ġ@ State Strategy Type ( One Execution State Strategy :: class ) ĊĠĠĠ Ġfun Ġstart Explorer ( tx Hash : ĠString ) ĊĠĠĠ Ġfun Ġfinish Cancel () ĊĠĠĠ Ġfun Ġfinish Success ( exchange Amount : ĠExchange Amount ) ĊĠĠĠ Ġfun Ġset Calculation ( calculation : ĠString ) ĊĠĠĠ Ġfun Ġset Out AccountName ( account Name : ĠCharSequence ) ĊĠĠĠ Ġfun Ġset Amount ( amount : ĠCharSequence ) ĊĠĠĠ Ġfun Ġset Coins Autocomplete ( listener : Ġ( Coin Item , ĠInt ) Ġ-> ĠUnit ) ĊĠĠĠ Ġfun Ġset Incoming Coin ( symbol : ĠString ) ĊĠĠĠ Ġfun Ġset Fee ( commission : ĠCharSequence ) ĊĠĠĠ Ġfun Ġshow Calculation Progress ( show : ĠBoolean ) ĊĠĠĠ Ġfun Ġset Calculation Title (@ String Res Ġcalc Title : ĠInt ) ĊĠĠĠ Ġfun Ġhide Keyboard () ĊĠĠĠ Ġfun Ġhide Calculation () ĊĠĠĠ Ġfun Ġvalidate Form () Ċ }