Beispiel #1
0
 protected bool Equals(BaseEntityDto <TIdentity> other)
 {
     return(Id.Equals(other.Id) &&
            CreatedTime.ToString() == other.CreatedTime.ToString() &&
            ModifiedTime.ToString() == other.ModifiedTime.ToString() &&
            CanModify == other.CanModify);
 }
Beispiel #2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("Room(");
        bool __first = true;

        if (Mid != null && __isset.mid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Mid: ");
            Mid.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (Contacts != null && __isset.contacts)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Contacts: ");
            Contacts.ToString(sb);
        }
        if (__isset.notificationDisabled)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("NotificationDisabled: ");
            NotificationDisabled.ToString(sb);
        }
        if (MemberMids != null && __isset.memberMids)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MemberMids: ");
            MemberMids.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Beispiel #3
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("GlobalEvent(");
        bool __first = true;

        if (Key != null && __isset.key)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Key: ");
            Key.ToString(sb);
        }
        if (Targets != null && __isset.targets)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Targets: ");
            Targets.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (__isset.data)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Data: ");
            Data.ToString(sb);
        }
        if (__isset.maxDelay)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MaxDelay: ");
            MaxDelay.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Beispiel #4
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("SquareEvent(");
        bool __first = true;

        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (__isset.type)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Type: ");
            Type.ToString(sb);
        }
        if (Payload != null && __isset.payload)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Payload: ");
            Payload.ToString(sb);
        }
        if (SyncToken != null && __isset.syncToken)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SyncToken: ");
            SyncToken.ToString(sb);
        }
        if (__isset.eventStatus)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("EventStatus: ");
            EventStatus.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Beispiel #5
0
        public override string ToString()
        {
            string localIp   = LocalIPAddress.IsNullOrEmpty() ? "NO_LOCAL_IP" : LocalIPAddress;
            string remoteIp  = RemoteIPAddress.IsNullOrEmpty() ? "NO_REMOTE_IP" : RemoteIPAddress;
            string logString = $"[{CreatedTime.ToString("dd/MM/yyyy:HH:mm:ss UTC")}] [{TraceId} - {ID} - {Username.ToLengthyString(12)}] [{Priority.ToString().ToLengthyString(8)} - {EventId} - {EventName}] [{localIp.ToLengthyString(15)} | {remoteIp.ToLengthyString(15)}] [{Source}]";

            if (!Message.IsNullOrEmpty())
            {
                logString += $"\n\t ==> { Message }";
            }
            return(logString);
        }
        public CheckInWrapper(Checkin i_RealCheckIn)
        {
            r_RealCheckIn     = i_RealCheckIn;
            r_CheckInLocation = new PointLatLng((double)r_RealCheckIn.Place.Location.Latitude, (double)r_RealCheckIn.Place.Location.Longitude);
            updateProperties();

            StringBuilder descriptionToToolTip = new StringBuilder();

            descriptionToToolTip.AppendLine("Name: " + Name);
            descriptionToToolTip.AppendLine("You Been there on: " + CreatedTime.ToString());

            r_CheckInMarkerOnMap             = new GMarkerGoogle(r_CheckInLocation, GMarkerGoogleType.pink);
            r_CheckInMarkerOnMap.ToolTipText = descriptionToToolTip.ToString();
        }
Beispiel #7
0
            public Session(string name = MAIN_SESSION_NAME)
            {
                TimeMark  = CreatedTime.ToString("yyMMddHHmmss");
                this.name = name;

                //if (Log.mode == Mode.ONLY_LOG)
                //    throw new Exception("SessionDir cannot be used in Log.Mode.ONLY_LOG");

                path = get_path(name);
                if (Log.mode == Mode.SESSIONS && writeLog)
                {
                    Directory.CreateDirectory(path);
                }
            }
Beispiel #8
0
        public override string ToString()
        {
            var createdTime = CreatedTime.ToString("yyyy-MM-dd HH:mm:ss.fff");
            var bodyLength  = 0;

            if (Body != null)
            {
                bodyLength = Body.Length;
            }
            var header = string.Empty;

            if (Header != null && Header.Count > 0)
            {
                header = string.Join(",", Header.Select(x => string.Format("{0}:{1}", x.Key, x.Value)));
            }
            return(string.Format("[Id:{0}, Type:{1}, Code:{2}, Sequence:{3}, CreatedTime:{4}, BodyLength:{5}, Header: [{6}]]",
                                 Id, Type, Code, Sequence, createdTime, bodyLength, header));
        }
Beispiel #9
0
        public void OnWrite(IMValueWriter writer)
        {
            writer.BeginObject();

            writer.Name("id");
            writer.Value(Id);

            writer.Name("posX");
            writer.Value(PosX);

            writer.Name("posY");
            writer.Value(PosY);

            writer.Name("posZ");
            writer.Value(PosZ);

            writer.Name("creatorId");
            writer.Value(CreatorId);

            writer.Name("createdTime");
            writer.Value(CreatedTime.ToString());

            writer.EndObject();
        }
 public string GetFormattedCreateTime() =>
 CreatedTime.ToString("D", new CultureInfo("es"));
Beispiel #11
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("Group(");
        bool __first = true;

        if (Id != null && __isset.id)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Id: ");
            Id.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (Name != null && __isset.name)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Name: ");
            Name.ToString(sb);
        }
        if (PictureStatus != null && __isset.pictureStatus)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PictureStatus: ");
            PictureStatus.ToString(sb);
        }
        if (__isset.preventedJoinByTicket)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PreventedJoinByTicket: ");
            PreventedJoinByTicket.ToString(sb);
        }
        if (GroupPreference != null && __isset.groupPreference)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("GroupPreference: ");
            GroupPreference.ToString(sb);
        }
        if (Members != null && __isset.members)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Members: ");
            Members.ToString(sb);
        }
        if (Creator != null && __isset.creator)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Creator: ");
            Creator.ToString(sb);
        }
        if (Invitee != null && __isset.invitee)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Invitee: ");
            Invitee.ToString(sb);
        }
        if (__isset.notificationDisabled)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("NotificationDisabled: ");
            NotificationDisabled.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Beispiel #12
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("CompactContact(");
        bool __first = true;

        if (Mid != null && __isset.mid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Mid: ");
            Mid.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (__isset.modifiedTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ModifiedTime: ");
            ModifiedTime.ToString(sb);
        }
        if (__isset.status)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Status: ");
            Status.ToString(sb);
        }
        if (__isset.settings)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Settings: ");
            Settings.ToString(sb);
        }
        if (DisplayNameOverridden != null && __isset.displayNameOverridden)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("DisplayNameOverridden: ");
            DisplayNameOverridden.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
        public void OnWrite(IMValueWriter writer)
        {
            writer.BeginObject();

            writer.Name("id");
            writer.Value(Id);

            writer.Name("name");
            writer.Value(Name);

            writer.Name("buildingType");
            writer.Value((int)BuildingType);

            writer.Name("entryFee");
            writer.Value(EntryFee);

            writer.Name("externalPickupPositionX");
            writer.Value(ExternalPickupPositionX);

            writer.Name("externalPickupPositionY");
            writer.Value(ExternalPickupPositionY);

            writer.Name("externalPickupPositionZ");
            writer.Value(ExternalPickupPositionZ);

            writer.Name("internalPickupPositionX");
            writer.Value(InternalPickupPositionX);

            writer.Name("internalPickupPositionY");
            writer.Value(InternalPickupPositionY);

            writer.Name("internalPickupPositionZ");
            writer.Value(InternalPickupPositionZ);

            writer.Name("maxObjectsCount");
            writer.Value(MaxObjectsCount);

            writer.Name("currentObjectsCount");
            writer.Value(CurrentObjectsCount);

            writer.Name("hasCCTV");
            writer.Value(HasCCTV);

            writer.Name("hasSafe");
            writer.Value(HasSafe);

            writer.Name("spawnPossible");
            writer.Value(SpawnPossible);

            writer.Name("balance");
            writer.Value(Balance);

            writer.Name("description");
            writer.Value(Description);

            writer.Name("createdTime");
            writer.Value(CreatedTime.ToString());

            writer.Name("onSale");
            writer.Value(OnSale);

            writer.Name("saleCost");
            writer.Value(SaleCost);

            if (CharacterId.HasValue)
            {
                writer.Name("characterId");
                writer.Value(CharacterId.Value);
            }

            writer.EndObject();
        }
Beispiel #14
0
 public override string ToString()
 {
     return($"{CheckId} from " +
            $"{CreatedTime.ToString("g")}");
 }
Beispiel #15
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("Contact(");
        bool __first = true;

        if (Mid != null && __isset.mid)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Mid: ");
            Mid.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (__isset.type)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Type: ");
            Type.ToString(sb);
        }
        if (__isset.status)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Status: ");
            Status.ToString(sb);
        }
        if (__isset.relation)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Relation: ");
            Relation.ToString(sb);
        }
        if (DisplayName != null && __isset.displayName)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("DisplayName: ");
            DisplayName.ToString(sb);
        }
        if (PhoneticName != null && __isset.phoneticName)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PhoneticName: ");
            PhoneticName.ToString(sb);
        }
        if (PictureStatus != null && __isset.pictureStatus)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PictureStatus: ");
            PictureStatus.ToString(sb);
        }
        if (ThumbnailUrl != null && __isset.thumbnailUrl)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ThumbnailUrl: ");
            ThumbnailUrl.ToString(sb);
        }
        if (StatusMessage != null && __isset.statusMessage)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("StatusMessage: ");
            StatusMessage.ToString(sb);
        }
        if (DisplayNameOverridden != null && __isset.displayNameOverridden)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("DisplayNameOverridden: ");
            DisplayNameOverridden.ToString(sb);
        }
        if (__isset.favoriteTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FavoriteTime: ");
            FavoriteTime.ToString(sb);
        }
        if (__isset.capableVoiceCall)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CapableVoiceCall: ");
            CapableVoiceCall.ToString(sb);
        }
        if (__isset.capableVideoCall)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CapableVideoCall: ");
            CapableVideoCall.ToString(sb);
        }
        if (__isset.capableMyhome)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CapableMyhome: ");
            CapableMyhome.ToString(sb);
        }
        if (__isset.capableBuddy)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CapableBuddy: ");
            CapableBuddy.ToString(sb);
        }
        if (__isset.attributes)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Attributes: ");
            Attributes.ToString(sb);
        }
        if (__isset.settings)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Settings: ");
            Settings.ToString(sb);
        }
        if (PicturePath != null && __isset.picturePath)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PicturePath: ");
            PicturePath.ToString(sb);
        }
        if (RecommendParams != null && __isset.recommendParams)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("RecommendParams: ");
            RecommendParams.ToString(sb);
        }
        if (__isset.friendRequestStatus)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FriendRequestStatus: ");
            FriendRequestStatus.ToString(sb);
        }
        if (MusicProfile != null && __isset.musicProfile)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MusicProfile: ");
            MusicProfile.ToString(sb);
        }
        if (VideoProfile != null && __isset.videoProfile)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("VideoProfile: ");
            VideoProfile.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Beispiel #16
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("Announcement(");
        bool __first = true;

        if (__isset.index)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Index: ");
            Index.ToString(sb);
        }
        if (__isset.forceUpdate)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ForceUpdate: ");
            ForceUpdate.ToString(sb);
        }
        if (Title != null && __isset.title)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Title: ");
            Title.ToString(sb);
        }
        if (Text != null && __isset.text)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Text: ");
            Text.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (PictureUrl != null && __isset.pictureUrl)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("PictureUrl: ");
            PictureUrl.ToString(sb);
        }
        if (ThumbnailUrl != null && __isset.thumbnailUrl)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ThumbnailUrl: ");
            ThumbnailUrl.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Beispiel #17
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("NotiCenterEventData(");
        bool __first = true;

        if (Id != null && __isset.id)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Id: ");
            Id.ToString(sb);
        }
        if (To != null && __isset.to)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("To: ");
            To.ToString(sb);
        }
        if (From_ != null && __isset.from_)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("From_: ");
            From_.ToString(sb);
        }
        if (ToChannel != null && __isset.toChannel)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ToChannel: ");
            ToChannel.ToString(sb);
        }
        if (FromChannel != null && __isset.fromChannel)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FromChannel: ");
            FromChannel.ToString(sb);
        }
        if (EventType != null && __isset.eventType)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("EventType: ");
            EventType.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (__isset.operationRevision)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("OperationRevision: ");
            OperationRevision.ToString(sb);
        }
        if (Content != null && __isset.content)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Content: ");
            Content.ToString(sb);
        }
        if (Push != null && __isset.push)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Push: ");
            Push.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Beispiel #18
0
 public string GetFormattedCreatedTime() =>
 CreatedTime.ToString("D",
                      new System.Globalization.CultureInfo("en"));
Beispiel #19
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("NotificationItem(");
        bool __first = true;

        if (Id != null && __isset.id)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Id: ");
            Id.ToString(sb);
        }
        if (_from != null && __isset._from)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("_from: ");
            _from.ToString(sb);
        }
        if (To != null && __isset.to)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("To: ");
            To.ToString(sb);
        }
        if (FromChannel != null && __isset.fromChannel)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FromChannel: ");
            FromChannel.ToString(sb);
        }
        if (ToChannel != null && __isset.toChannel)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ToChannel: ");
            ToChannel.ToString(sb);
        }
        if (__isset.revision)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Revision: ");
            Revision.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (Content != null && __isset.content)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Content: ");
            Content.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Beispiel #20
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("Operation(");
        bool __first = true;

        if (__isset.revision)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Revision: ");
            Revision.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (__isset.type)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Type: ");
            Type.ToString(sb);
        }
        if (__isset.reqSeq)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ReqSeq: ");
            ReqSeq.ToString(sb);
        }
        if (Checksum != null && __isset.checksum)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Checksum: ");
            Checksum.ToString(sb);
        }
        if (__isset.status)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Status: ");
            Status.ToString(sb);
        }
        if (Param1 != null && __isset.param1)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Param1: ");
            Param1.ToString(sb);
        }
        if (Param2 != null && __isset.param2)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Param2: ");
            Param2.ToString(sb);
        }
        if (Param3 != null && __isset.param3)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Param3: ");
            Param3.ToString(sb);
        }
        if (Message != null && __isset.message)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Message: ");
            Message.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Beispiel #21
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("Message(");
        bool __first = true;

        if (_from != null && __isset._from)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("_from: ");
            _from.ToString(sb);
        }
        if (To != null && __isset.to)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("To: ");
            To.ToString(sb);
        }
        if (__isset.toType)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ToType: ");
            ToType.ToString(sb);
        }
        if (Id != null && __isset.id)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Id: ");
            Id.ToString(sb);
        }
        if (__isset.createdTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CreatedTime: ");
            CreatedTime.ToString(sb);
        }
        if (__isset.deliveredTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("DeliveredTime: ");
            DeliveredTime.ToString(sb);
        }
        if (Text != null && __isset.text)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Text: ");
            Text.ToString(sb);
        }
        if (Location != null && __isset.location)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Location: ");
            Location.ToString(sb);
        }
        if (__isset.hasContent)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("HasContent: ");
            HasContent.ToString(sb);
        }
        if (__isset.contentType)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ContentType: ");
            ContentType.ToString(sb);
        }
        if (ContentPreview != null && __isset.contentPreview)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ContentPreview: ");
            ContentPreview.ToString(sb);
        }
        if (ContentMetadata != null && __isset.contentMetadata)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ContentMetadata: ");
            ContentMetadata.ToString(sb);
        }
        if (__isset.sessionId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SessionId: ");
            SessionId.ToString(sb);
        }
        if (Chunks != null && __isset.chunks)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Chunks: ");
            Chunks.ToString(sb);
        }
        if (RelatedMessageId != null && __isset.relatedMessageId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("RelatedMessageId: ");
            RelatedMessageId.ToString(sb);
        }
        if (__isset.messageRelationType)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MessageRelationType: ");
            MessageRelationType.ToString(sb);
        }
        if (__isset.readCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ReadCount: ");
            ReadCount.ToString(sb);
        }
        if (__isset.relatedMessageServiceCode)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("RelatedMessageServiceCode: ");
            RelatedMessageServiceCode.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }