Beispiel #1
0
 public SubmissionStatusModel(SerializedPacket p)
 {
     SerializedPacket.VerifyPacket(p, this.GetClassId());
     this.id_ = SerializedPacket.DeserializeGuid(p.GetPart(0));
     this.submission_status_ = (Status)SerializedPacket.DeserializeInt(p.GetPart(1));
     this.role_ = SerializedPacket.DeserializeString(p.GetPart(2));
 }
Beispiel #2
0
 public SheetMessage(Message parent, SerializedPacket p) : base(parent, p)
 {
     this.SheetCollectionSelector = (SheetCollection)SerializedPacket.DeserializeLong(p.GetNextPart());
     this.Disposition             = (SheetDisposition)SerializedPacket.DeserializeLong(p.GetNextPart());
     this.Bounds = SerializedPacket.DeserializeRectangle(p.GetNextPart());
     this.Height = SerializedPacket.DeserializeInt(p.GetNextPart());
 }
Beispiel #3
0
        public BroadcastMessage(SerializedPacket p)
        {
            SerializedPacket.VerifyPacket(p, this.GetClassId());
            this.EndPoints = null;
            if (SerializedPacket.DeserializeBool(p.GetNextPart()))
            {
                this.EndPoints = new IPEndPoint[SerializedPacket.DeserializeInt(p.GetNextPart())];
                for (int i = 0; i < this.EndPoints.Length; i++)
                {
                    this.EndPoints[i] = SerializedPacket.DeserializeIPEndPoint(p.GetNextPart());
                }
            }
            this.HumanName        = SerializedPacket.DeserializeString(p.GetNextPart());
            this.SenderID         = SerializedPacket.DeserializeGuid(p.GetNextPart());
            this.PresentationName = SerializedPacket.DeserializeString(p.GetNextPart());
            this.ShowIP           = SerializedPacket.DeserializeBool(p.GetNextPart());

/*
 * //CMPRINCE DEBUGGING
 *          string IPs = "";
 *          foreach( IPEndPoint ep in this.EndPoints ) {
 *              IPs += ep.Address.ToString() + " ";
 *          }
 *          System.Diagnostics.Debug.Write( "RECVD: BroadcastListener: " +
 *              IPs +
 *              this.HumanName + " " +
 *              this.SenderID.ToString() + " " +
 *              this.PresentationName +
 *              System.Environment.NewLine
 *              );
 */
        }
Beispiel #4
0
 public InkSheetStrokesDeletingMessage(Message parent, SerializedPacket p) : base(parent, p)
 {
     this.StrokeIds = new string[SerializedPacket.DeserializeInt(p.GetNextPart())];
     for (int i = 0; i < this.StrokeIds.Length; i++)
     {
         this.StrokeIds[i] = SerializedPacket.DeserializeString(p.GetNextPart());
     }
 }
Beispiel #5
0
 public InkSheetStrokesAddedMessage(Message parent, SerializedPacket p) : base(parent, p)
 {
     this.SavedInks = new byte[SerializedPacket.DeserializeInt(p.GetNextPart())][];
     for (int i = 0; i < this.SavedInks.Length; i++)
     {
         this.SavedInks[i] = SerializedPacket.DeserializeByteArray(p.GetNextPart());
     }
 }
Beispiel #6
0
 public VersionResponseMessage(Message parent, SerializedPacket p) : base(parent, p)
 {
     this.ResponderId         = SerializedPacket.DeserializeGuid(p.GetNextPart());
     this.ResponderVersion    = new Version(SerializedPacket.DeserializeString(p.GetNextPart()));
     this.Compatibility       = (VersionCompatibility)SerializedPacket.DeserializeInt(p.GetNextPart());
     this.Action              = (VersionIncompatibilityRecommendedAction)SerializedPacket.DeserializeInt(p.GetNextPart());
     this.WarningMessage      = SerializedPacket.DeserializeString(p.GetNextPart());
     this.LocalWarningMessage = "";
 }
Beispiel #7
0
            public TabletPropertyDescriptionCollectionInformation(SerializedPacket p)
            {
                SerializedPacket.VerifyPacket(p, this.GetClassId());
                this.InkToDeviceScaleX = SerializedPacket.DeserializeFloat(p.GetNextPart());
                this.InkToDeviceScaleY = SerializedPacket.DeserializeFloat(p.GetNextPart());
                int cnt = SerializedPacket.DeserializeInt(p.GetNextPart());

                this.TabletPropertyDescriptions = new ArrayList(cnt);
                for (int i = 0; i < cnt; i++)
                {
                    this.TabletPropertyDescriptions.Add(new TabletPropertyDescriptionInformation(p.GetNextPart()));
                }
            }
Beispiel #8
0
 public TabletPropertyDescriptionInformation(SerializedPacket p)
 {
     this.PacketPropertyId = Guid.Empty;
     this.TabletPropertyMetrics_Maximum    = 0;
     this.TabletPropertyMetrics_Minimum    = 0;
     this.TabletPropertyMetrics_Resolution = 0.0f;
     this.TabletPropertyMetrics_Units      = TabletPropertyMetricUnit.Default;
     SerializedPacket.VerifyPacket(p, this.GetClassId());
     this.PacketPropertyId = SerializedPacket.DeserializeGuid(p.GetNextPart());
     this.TabletPropertyMetrics_Maximum    = SerializedPacket.DeserializeInt(p.GetNextPart());
     this.TabletPropertyMetrics_Minimum    = SerializedPacket.DeserializeInt(p.GetNextPart());
     this.TabletPropertyMetrics_Resolution = SerializedPacket.DeserializeFloat(p.GetNextPart());
     this.TabletPropertyMetrics_Units      = (TabletPropertyMetricUnit)SerializedPacket.DeserializeLong(p.GetNextPart());
 }
Beispiel #9
0
        public QuickPollModel(SerializedPacket p)
        {
            SerializedPacket.VerifyPacket(p, this.GetClassId());
            this.m_Id = SerializedPacket.DeserializeGuid(p.GetNextPart());
            this.m_OriginalSlideId = SerializedPacket.DeserializeGuid(p.GetNextPart());
            this.m_QuickPollStyle  = (QuickPollStyle)SerializedPacket.DeserializeInt(p.GetNextPart());
            this.m_Changed         = SerializedPacket.DeserializeBool(p.GetNextPart());
            this.m_Choices         = new string[SerializedPacket.DeserializeInt(p.GetNextPart())];
            for (int i = 0; i < this.m_Choices.Length; i++)
            {
                this.m_Choices[i] = SerializedPacket.DeserializeString(p.GetNextPart());
            }
            int cnt = SerializedPacket.DeserializeInt(p.GetNextPart());

            this.m_QuickPollResults = new QuickPollResultCollection(this, "QuickPollResults");
            for (int j = 0; j < cnt; j++)
            {
                this.AddResult(new QuickPollResultModel(p.GetNextPart()));
            }
        }
Beispiel #10
0
 public RealTimeInkSheetDataMessage(Message parent, SerializedPacket p) : base(parent, p)
 {
     this.StylusId = SerializedPacket.DeserializeInt(p.GetNextPart());
     this.StrokeId = SerializedPacket.DeserializeInt(p.GetNextPart());
     this.Packets  = SerializedPacket.DeserializeIntArray(p.GetNextPart());
 }