public TransportationStatusType() { this.statusPeriodField = new ObservableCollection <PeriodType>(); this.statusLocationField = new ObservableCollection <LocationType1>(); this.updatedDeliveryTransportEventField = new TransportEventType(); this.updatedPickupTransportEventField = new TransportEventType(); this.transportExecutionPlanDocumentReferenceField = new DocumentReferenceType(); this.transportationStatusRequestDocumentReferenceField = new DocumentReferenceType(); this.receiverPartyField = new PartyType(); this.senderPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.documentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.transportEventField = new ObservableCollection <TransportEventType>(); this.consignmentField = new ObservableCollection <ConsignmentType>(); this.transportExecutionStatusCodeField = new TransportExecutionStatusCodeType(); this.transportationStatusTypeCodeField = new TransportationStatusTypeCodeType(); this.otherInstructionField = new OtherInstructionType(); this.shippingOrderIDField = new ShippingOrderIDType(); this.noteField = new ObservableCollection <NoteType>(); this.descriptionField = new ObservableCollection <DescriptionType>(); this.nameField = new NameType1(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.carrierAssignedIDField = new CarrierAssignedIDType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
void onTransportEvent(TransportProtocol protocol, TransportEventType type) { if (type == TransportEventType.kStopped) { is_done_ = true; } }
void onTransportEvent(TransportProtocol protocol, TransportEventType type) { if (protocol == TransportProtocol.kTcp && type == TransportEventType.kStarted) { connected_ = true; } else { if (!session_.Started) { connected_ = false; } } }
void onTransportEvent(TransportProtocol protocol, TransportEventType type) { if (type == TransportEventType.kStarted) { // The transport is connected. } else if (type == TransportEventType.kStopped) { // The transport is stopped. } else if (type == TransportEventType.kReconnecting) { // The transport has started to reconnect. } }
void onTransportEvent(TransportProtocol protocol, TransportEventType type) { if (type == TransportEventType.kStarted) { Dictionary <string, object> body = new Dictionary <string, object>(); body["account_id"] = user_id_; body["platform"] = "unity"; session_.SendMessage("login", body); } else if (type == TransportEventType.kStopped) { if (signing_out_) { signing_out_ = false; return; } if (mainMenu != null) { mainMenu.lobbyManager.DisplayIsError("Disconnected."); } } }
private void onTransportEvent(TransportProtocol protocol, TransportEventType type) { // TODO(sorae): impl.. }
void onTransportEvent(TransportProtocol protocol, TransportEventType type) { }