public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._entityID.Unmarshal(dis); this._communicationsDeviceID = dis.ReadUnsignedShort(); this._encodingScheme = dis.ReadUnsignedShort(); this._tdlType = dis.ReadUnsignedShort(); this._sampleRate = dis.ReadUnsignedInt(); this._dataLength = dis.ReadUnsignedShort(); this._samples = dis.ReadUnsignedShort(); this._data = dis.ReadByteArray(this._dataLength); } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._encodingScheme = dis.ReadUnsignedShort(); this._tdlType = dis.ReadUnsignedShort(); this._sampleRate = dis.ReadUnsignedInt(); this._dataLength = dis.ReadShort(); this._samples = dis.ReadShort(); this._data = dis.ReadByteArray((this._dataLength / 8) + (this._dataLength % 8 > 0 ? 1 : 0)); //09062009 Post processed. Needed to convert from bits to bytes } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._entityID.Unmarshal(dis); this._communicationsDeviceID = dis.ReadUnsignedShort(); this._encodingScheme = dis.ReadUnsignedShort(); this._tdlType = dis.ReadUnsignedShort(); this._sampleRate = dis.ReadUnsignedInt(); this._dataLength = dis.ReadUnsignedShort(); this._samples = dis.ReadUnsignedShort(); this._data = dis.ReadByteArray(this._dataLength); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._numberOfBytes = dis.ReadUnsignedShort(); this._dataValues = dis.ReadByteArray(this._numberOfBytes); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public void Invoke(HttpSessionState session, DataInputStream input) { HttpProcessor.GetClient <SnapUpServiceSoapClient>(session).DeviceUploadPhoto( input.ReadString(), input.ReadString(), Convert.ToBase64String(input.ReadByteArray()), input.ReadDateTime().Ticks.ToString()); }
public void Invoke(HttpSessionState session, DataInputStream input) { HttpProcessor.GetClient <AskServiceSoapClient>(session).AttachPhoto( input.ReadString(), input.ReadString(), input.ReadString(), input.ReadInt32(), Convert.ToBase64String(input.ReadByteArray())); }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._numberOfBytes = dis.ReadUnsignedShort(); this._dataValues = dis.ReadByteArray(this._numberOfBytes); } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }