public override string ToString()
 {
     return(string.Format("MegacoolShare(State={0}, ReferralCode={1}, Url=\"{2}\", Data={3}, " +
                          "CreatedAt={4}, UpdatedAt={5})",
                          State, ReferralCode.ToString(true), Url, Data == null ? null : Json.Serialize(Data),
                          CreatedAt.ToString("yyyy-MM-ddTHH:mm:ss"), UpdatedAt.ToString("yyyy-MM-ddTHH:mm:ss")));
 }
Exemple #2
0
 protected void ToString(List <string> toStringOutput)
 {
     toStringOutput.Add($"CreationSource = {(CreationSource == null ? "null" : CreationSource.ToString())}");
     toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt.ToString())}");
     toStringOutput.Add($"UpdatedAt = {(UpdatedAt == null ? "null" : UpdatedAt.ToString())}");
     toStringOutput.Add($"EmailAddress = {(EmailAddress == null ? "null" : EmailAddress.ToString())}");
     toStringOutput.Add($"PhoneNumber = {(PhoneNumber == null ? "null" : PhoneNumber.ToString())}");
     toStringOutput.Add($"ReferenceId = {(ReferenceId == null ? "null" : ReferenceId.ToString())}");
     toStringOutput.Add($"GroupIds = {(GroupIds == null ? "null" : GroupIds.ToString())}");
 }
Exemple #3
0
 public Dictionary <string, string> ToDictionary()
 {
     return(new Dictionary <string, string>
     {
         { "ClassID", ObjectId },
         { "ClassDepartment", CDepartment },
         { "ClassGrade", CGrade },
         { "ClassNumber", CNumber },
         { "TeacherID", TeacherID },
         { "CreatedAt", CreatedAt.ToString("yyyy-MM-dd HH:mm:ss") },
         { "UpdatedAt", UpdatedAt.ToString("yyyy-MM-dd HH:mm:ss") },
     });
 }
Exemple #4
0
        public void AsJson(JsonWriter jw, string baseUrl)
        {
            jw.WritePropertyName("sourcedId");
            jw.WriteValue(Id);
            jw.WritePropertyName("status");
            jw.WriteValue(Enum.GetName(typeof(Vocabulary.StatusType), Status));
            jw.WritePropertyName("dateLastModified");
            jw.WriteValue(UpdatedAt.ToString("yyyy-MM-ddTHH\\:mm\\:ss.fffz"));

            if (!String.IsNullOrEmpty(Metadata))
            {
                jw.WritePropertyName("metadata");
                jw.WriteValue(Metadata);
            }
        }
Exemple #5
0
        public void AsCsvRow(CsvWriter writer, bool bulk = true)
        {
            writer.WriteField(Id);

            if (bulk)
            {
                writer.WriteField("");
                writer.WriteField("");
            }
            else
            {
                writer.WriteField(Status);
                writer.WriteField(UpdatedAt.ToString("yyyy-MM-dd"));
            }
        }
Exemple #6
0
 public CRM_Customer_Profile()
 {
     this.ID                 = string.IsNullOrEmpty(ID.ToString()) ? ID : 0;
     this.CustomerID         = string.IsNullOrEmpty(CustomerID) ? CustomerID : "";
     this.CustomerName       = string.IsNullOrEmpty(CustomerName) ? CustomerName : "";
     this.Address            = string.IsNullOrEmpty(Address) ? Address : "";
     this.Phone              = string.IsNullOrEmpty(Phone) ? Phone : "";
     this.Website            = string.IsNullOrEmpty(Website) ? Website : "";
     this.BusinessCategoryID = string.IsNullOrEmpty(BusinessCategoryID) ? BusinessCategoryID : "";
     this.FoundedDate        = string.IsNullOrEmpty(FoundedDate.ToString()) ? FoundedDate : DateTime.Now;
     this.Avatar             = string.IsNullOrEmpty(Avatar) ? Avatar : Avatar;
     this.DescriptionCompany = string.IsNullOrEmpty(DescriptionCompany) ? DescriptionCompany : DescriptionCompany;
     this.Refer              = string.IsNullOrEmpty(Refer) ? DescriptionCompany : Refer;
     this.Status             = string.IsNullOrEmpty(Status.ToString()) ? Status : true;
     this.UpdatedAt          = string.IsNullOrEmpty(UpdatedAt.ToString()) ? UpdatedAt : DateTime.Parse("1900-01-01");
     this.CreatedAt          = string.IsNullOrEmpty(CreatedAt.ToString()) ? CreatedAt : DateTime.Parse("1900-01-01");
     this.CreatedBy          = string.IsNullOrEmpty(CreatedBy) ? CreatedBy : "";
     this.UpdatedBy          = string.IsNullOrEmpty(UpdatedBy) ? UpdatedBy : "";
 }
 /// <summary><see cref="ValueType.ToString"/></summary>
 public override string ToString()
 {
     //return $"TimeInfo[ElapsedTime({ElapsedTime.ToString()}); UpdatedAt({UpdatedAt.ToString()}); TrialTime({TrialTime}); TrialTimeSpeed({TrialTimeSpeed}); TimeState({TimeState})]";
     return($"TimeInfo[UpdatedAt({UpdatedAt.ToString()}); TrialTime({TrialTime}); TrialTimeSpeed({TrialTimeSpeed}); TimeState({TimeState})]");
 }
Exemple #8
0
 protected void ToString(List <string> toStringOutput)
 {
     toStringOutput.Add($"CreatedAt = {(CreatedAt == null ? "null" : CreatedAt.ToString())}");
     toStringOutput.Add($"UpdatedAt = {(UpdatedAt == null ? "null" : UpdatedAt.ToString())}");
     toStringOutput.Add($"ClosedAt = {(ClosedAt == null ? "null" : ClosedAt.ToString())}");
 }
Exemple #9
0
 public string UpdatedAtConverter()
 {
     return(UpdatedAt != null?UpdatedAt?.ToString("dd MMM HH:mm") : "");
 }
Exemple #10
0
 public override string ToString()
 {
     if (ExpiresAt != null)
     {
         return(string.Format("uid={0} username={1} roles={2} created={3} updated={4} token={5} expires={6}",
                              Uid, Username, RolesString, CreatedAt.ToString(DTFMT), UpdatedAt.ToString(DTFMT),
                              AccessToken, ExpiresAt.Value.ToString(DTFMT)));
     }
     else
     {
         return(string.Format("uid={0} username={1} roles={2} created={3} updated={4} token= expires=",
                              Uid, Username, RolesString, CreatedAt.ToString(DTFMT), UpdatedAt.ToString(DTFMT)));
     }
 }