public static byte[] Rejected(RejectionCode Reason) { byte[] ConnectedEx = new byte[32]; Writer.WriteUInt16((UInt16)(ConnectedEx.Length), 0, ConnectedEx); Writer.WriteUInt16(1055, 2, ConnectedEx); Writer.WriteUInt32((UInt32)Reason, 8, ConnectedEx); return(ConnectedEx); }
protected NeuraliumRejectionCodes() { this.INSUFFICIENT_BALANCE = this.CreateChildConstant(); this.NEGATIVE_AMOUNT = this.CreateChildConstant(); this.ZERO_AMOUNT = this.CreateChildConstant(); this.NEGATIVE_TIP = this.CreateChildConstant(); //this.PrintValues(";"); }
public ApiRejectionException(RejectionCode rejectionCode, string rejectionDescription) : base(rejectionDescription) { RejectionCode = rejectionCode; }