private static ProfileText CreatePatientProfile(SQLiteDataReader reader)
        {
            var patient = new ProfileText
            {
                Pkey       = reader.GetGuid(0),
                PatientId  = reader.IsDBNull(1) ? string.Empty : reader.GetString(1),
                FamilyName = reader.IsDBNull(2) ? string.Empty : reader.GetString(2),
                MiddleName = reader.IsDBNull(3) ? string.Empty : reader.GetString(3),
                FirstName  = reader.IsDBNull(4) ? string.Empty : reader.GetString(4)
            };

            return(patient);
        }
Beispiel #2
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder("Geocaching Authenticated Context:");

            sb.Append("Geocaching Authenticated Context:");

            if (!string.IsNullOrEmpty(ReferenceCode))
            {
                sb.Append(Environment.NewLine).Append("\tReferenceCode: ").Append(ReferenceCode);
            }

            if (!string.IsNullOrEmpty(Username))
            {
                sb.Append(Environment.NewLine).Append("\tUsername: "******"\tAccessToken: ").Append(AccessToken);
            sb.Append(Environment.NewLine).Append("\tExpiresIn: ").Append(ExpiresIn);
            sb.Append(Environment.NewLine).Append("\tRefreshToken: ").Append(RefreshToken);

            if (!string.IsNullOrEmpty(MembershipLevelId))
            {
                sb.Append(Environment.NewLine).Append("\tMembershipLevelId: ").Append(MembershipLevelId);
            }

            if (!string.IsNullOrEmpty(AvatarUrl))
            {
                sb.Append(Environment.NewLine).Append("\tAvatarUrl: ").Append(AvatarUrl);
            }

            if (!string.IsNullOrEmpty(BannerUrl))
            {
                sb.Append(Environment.NewLine).Append("\tBannerUrl: ").Append(BannerUrl);
            }

            if (!string.IsNullOrEmpty(Url))
            {
                sb.Append(Environment.NewLine).Append("\tUrl: ").Append(Url);
            }

            if (!string.IsNullOrEmpty(HomeCoordinates))
            {
                sb.Append(Environment.NewLine).Append("\tHomeCoordinates: ").Append(HomeCoordinates);
            }

            if (!string.IsNullOrEmpty(GeocacheLimits))
            {
                sb.Append(Environment.NewLine).Append("\tGeocacheLimits: ").Append(GeocacheLimits);
            }

            if (!string.IsNullOrEmpty(FindCount))
            {
                sb.Append(Environment.NewLine).Append("\tFindCount: ").Append(FindCount);
            }

            if (!string.IsNullOrEmpty(HideCount))
            {
                sb.Append(Environment.NewLine).Append("\tHideCount: ").Append(HideCount);
            }

            if (!string.IsNullOrEmpty(FavoritePoints))
            {
                sb.Append(Environment.NewLine).Append("\tFavoritePoints: ").Append(FavoritePoints);
            }

            if (!string.IsNullOrEmpty(ProfileText))
            {
                sb.Append(Environment.NewLine).Append("\tProfileText: ").Append(ProfileText.Substring(0, 100));
            }

            return(sb.ToString());
        }