Skip to content

Commit e082f57

Browse files
authored
Alexander's Anointed Automated Git Helper (#104)
1 parent d07310e commit e082f57

30 files changed

+292
-296
lines changed

AnointedAutomation.Objects.API/API/Account/Credentials.cs

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
// Edited by Alexander Fields https://www.alexanderfields.me 2025-07-02 11:48:25
33
//Created by Alexander Fields
44

5+
// =============================================================================
6+
// NAMING CONVENTION:
7+
// This codebase follows a specific property naming pattern:
8+
// - Value types (structs): lowercase (e.g., bool success, int statusCode)
9+
// - Reference types (objects): PascalCase (e.g., string Message, object Data)
10+
// =============================================================================
11+
512
namespace AnointedAutomation.Objects.API.Account
613
{
714
public class Credentials
@@ -12,15 +19,15 @@ public Credentials()
1219

1320
public Credentials(string email, string password, string token, string googleToken)
1421
{
15-
this.email = email ?? throw new System.ArgumentNullException(nameof(email));
16-
this.password = password ?? throw new System.ArgumentNullException(nameof(password));
17-
this.token = token;
18-
this.googleToken = token;
22+
this.Email = email ?? throw new System.ArgumentNullException(nameof(email));
23+
this.Password = password ?? throw new System.ArgumentNullException(nameof(password));
24+
this.Token = token;
25+
this.GoogleToken = googleToken;
1926
}
2027

21-
public string email { get; set; }
22-
public string googleToken { get; set; }
23-
public string password { get; set; }
24-
public string token { get; set; }
28+
public string Email { get; set; }
29+
public string GoogleToken { get; set; }
30+
public string Password { get; set; }
31+
public string Token { get; set; }
2532
}
2633
}

AnointedAutomation.Objects.API/API/Account/IPInfo.cs

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
// Edited by Alexander Fields https://www.alexanderfields.me 2025-07-02 11:48:25
33
//Created by Alexander Fields
44

5+
// =============================================================================
6+
// NAMING CONVENTION:
7+
// This codebase follows a specific property naming pattern:
8+
// - Value types (structs): lowercase (e.g., bool success, int statusCode)
9+
// - Reference types (objects): PascalCase (e.g., string Message, object Data)
10+
// =============================================================================
11+
512
using System.Runtime.Serialization;
613

714
namespace AnointedAutomation.Objects.API.Account
@@ -12,46 +19,31 @@ public IPInfo()
1219
{
1320
}
1421

15-
public IPInfo(System.DateTime firstLogin, string ipAddress, System.DateTime lastLogin, uint loginCount, System.TimeSpan timeOnline)
22+
public IPInfo(System.DateTime firstLogin, string ipAddress, System.DateTime lastLogin, ulong loginCount, System.TimeSpan timeOnline)
1623
{
1724
this.firstLogin = firstLogin;
18-
this.ipAddress = ipAddress;
25+
this.IpAddress = ipAddress;
1926
this.lastLogin = lastLogin;
2027
this.loginCount = loginCount;
2128
this.timeOnline = default;
2229
}
2330

2431
[DataMember]
25-
public System.DateTime firstLogin
26-
{
27-
get; set;
28-
}
32+
public System.DateTime firstLogin { get; set; }
2933

3034
[DataMember]
31-
public string ipAddress
32-
{
33-
get; set;
34-
}
35+
public string IpAddress { get; set; }
3536

3637
[DataMember]
37-
public System.DateTime lastLogin
38-
{
39-
get; set;
40-
}
38+
public System.DateTime lastLogin { get; set; }
4139

4240
/// <summary>
4341
/// amount of times the ip as logged in
4442
/// </summary>
4543
[DataMember]
46-
public ulong loginCount
47-
{
48-
get; set;
49-
}
44+
public ulong loginCount { get; set; }
5045

5146
[DataMember]
52-
public System.TimeSpan timeOnline
53-
{
54-
get; set;
55-
}
47+
public System.TimeSpan timeOnline { get; set; }
5648
}
5749
}

AnointedAutomation.Objects.API/API/Account/Profile.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
// Copyright © Anointed Automation, LLC., 2024. All Rights Reserved. Created by Alexander Fields https://www.alexanderfields.me on 2024-01-16 19:19:01
22
// Edited by Alexander Fields https://www.alexanderfields.me 2025-07-02 11:48:25
33
//Created by Alexander Fields
4+
5+
// =============================================================================
6+
// NAMING CONVENTION:
7+
// This codebase follows a specific property naming pattern:
8+
// - Value types (structs): lowercase (e.g., bool success, int statusCode)
9+
// - Reference types (objects): PascalCase (e.g., string Message, object Data)
10+
// =============================================================================
11+
412
using AnointedAutomation.Objects.API.Billing;
513
using MongoDB.Bson.Serialization.Attributes;
614
using Newtonsoft.Json.Linq;
@@ -14,7 +22,7 @@ public Profile()
1422
{ }
1523

1624
public Profile(
17-
JObject accountSetting,
25+
JObject accountSettings,
1826
System.DateTime dob,
1927
string firstName,
2028
string lastName,
@@ -23,10 +31,10 @@ ulong number
2331
)
2432
: base(dob, firstName, lastName, middleName, number)
2533
{
26-
this.accountSettings = accountSetting;
34+
this.AccountSettings = accountSettings;
2735
}
2836

2937
[BsonSerializer(typeof(JObjectSerializer))]
30-
public JObject accountSettings { get; set; }
38+
public JObject AccountSettings { get; set; }
3139
}
3240
}

AnointedAutomation.Objects.API/API/Account/User.cs

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
// Edited by Alexander Fields https://www.alexanderfields.me 2025-07-02 11:48:25
33
//Created by Alexander Fields
44

5+
// =============================================================================
6+
// NAMING CONVENTION:
7+
// This codebase follows a specific property naming pattern:
8+
// - Value types (structs): lowercase (e.g., bool success, int statusCode)
9+
// - Reference types (objects): PascalCase (e.g., string Message, object Data)
10+
// =============================================================================
11+
512
using MongoDB.Bson.Serialization.Attributes;
613
using System.Collections.Generic;
714
using System.Runtime.Serialization;
@@ -33,19 +40,18 @@ System.DateTime tokenExpiration
3340
{
3441
this.banned = banned != default ? banned : new System.DateTime(1900, 1, 1);
3542
this.createdDate = createdDate != default ? createdDate : System.DateTime.Now;
36-
this.email = email;
43+
this.Email = email;
3744
this.emailConfirmed = emailConfirmed;
38-
this.IPAdresses = ipAddresses ?? new List<IPInfo>();
45+
this.IPAddresses = ipAddresses ?? new List<IPInfo>();
3946
this.lastActiveDate = lastActiveDate != default ? lastActiveDate : System.DateTime.Now;
40-
this.password = password ?? throw new System.ArgumentNullException(nameof(password));
47+
this.Password = password ?? throw new System.ArgumentNullException(nameof(password));
4148
this.Profile = profile ?? new Profile();
42-
this.role = role;
49+
this.Role = role;
4350
this.timeOnline = timeOnline;
44-
this.userId = userId;
45-
this.username = username;
46-
this.token = token;
51+
this.UserId = userId;
52+
this.Username = username;
53+
this.Token = token;
4754
this.tokenExpiration = tokenExpiration;
48-
//this.GoogleObjects = googleObjects;
4955
}
5056

5157
/// <summary>
@@ -61,13 +67,13 @@ System.DateTime tokenExpiration
6167
/// email serves as their login name
6268
/// </summary>
6369
[DataMember]
64-
public string email { get; set; }
70+
public string Email { get; set; }
6571

6672
[DataMember]
6773
public bool emailConfirmed { get; set; }
6874

6975
[DataMember]
70-
public List<IPInfo> IPAdresses { get; set; }
76+
public List<IPInfo> IPAddresses { get; set; }
7177

7278
[DataMember]
7379
public System.DateTime lastActiveDate { get; set; }
@@ -76,22 +82,22 @@ System.DateTime tokenExpiration
7682
/// This will most likely be a big json
7783
/// </summary>
7884
[DataMember]
79-
public string meta { get; set; }
85+
public string Meta { get; set; }
8086

8187
[DataMember]
82-
public string password { get; set; }
88+
public string Password { get; set; }
8389

8490
[DataMember]
8591
public Profile Profile { get; set; }
8692

8793
[DataMember]
88-
public string role { get; set; }
94+
public string Role { get; set; }
8995

9096
[DataMember]
9197
public System.TimeSpan timeOnline { get; set; }
9298

9399
[DataMember]
94-
public string token { get; set; }
100+
public string Token { get; set; }
95101

96102
[DataMember]
97103
public System.DateTime tokenExpiration { get; set; }
@@ -101,9 +107,9 @@ System.DateTime tokenExpiration
101107
/// </summary>
102108
[BsonId]
103109
[DataMember]
104-
public string userId { get; set; }
110+
public string UserId { get; set; }
105111

106112
[DataMember]
107-
public string username { get; set; }
113+
public string Username { get; set; }
108114
}
109115
}

AnointedAutomation.Objects.API/API/Billing/Address.cs

Lines changed: 20 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
// Edited by Alexander Fields https://www.alexanderfields.me 2025-07-02 11:48:25
33
//Created by Alexander Fields
44

5+
// =============================================================================
6+
// NAMING CONVENTION:
7+
// This codebase follows a specific property naming pattern:
8+
// - Value types (structs): lowercase (e.g., bool success, int statusCode)
9+
// - Reference types (objects): PascalCase (e.g., string Message, object Data)
10+
// =============================================================================
11+
512
using System.Runtime.Serialization;
613

714
namespace AnointedAutomation.Objects.API.Billing
@@ -24,73 +31,52 @@ public Address()
2431
/// <param name="zip"></param>
2532
public Address(string city, string country, string name, Contact contact, string state, string street, int zip)
2633
{
27-
this.city = city ?? throw new System.ArgumentNullException(nameof(city));
28-
this.country = country ?? throw new System.ArgumentNullException(nameof(country));
29-
this.name = name;
30-
this.contact = contact ?? throw new System.ArgumentNullException(nameof(contact));
31-
this.state = state ?? throw new System.ArgumentNullException(nameof(state));
32-
this.street = street ?? throw new System.ArgumentNullException(nameof(street));
34+
this.City = city ?? throw new System.ArgumentNullException(nameof(city));
35+
this.Country = country ?? throw new System.ArgumentNullException(nameof(country));
36+
this.Name = name;
37+
this.Contact = contact ?? throw new System.ArgumentNullException(nameof(contact));
38+
this.State = state ?? throw new System.ArgumentNullException(nameof(state));
39+
this.Street = street ?? throw new System.ArgumentNullException(nameof(street));
3340
this.zip = zip;
3441
}
3542

3643
/// <summary>
3744
/// Do they put on for their...
3845
/// </summary>
3946
[DataMember]
40-
public string city
41-
{
42-
get; set;
43-
}
47+
public string City { get; set; }
4448

4549
[DataMember]
46-
public Contact contact
47-
{
48-
get; set;
49-
}
50+
public Contact Contact { get; set; }
5051

5152
/// <summary>
5253
/// Their Country/State (not to be confused with individual states in U.S.)
5354
/// </summary>
5455
[DataMember]
55-
public string country
56-
{
57-
get; set;
58-
}
56+
public string Country { get; set; }
5957

6058
/// <summary>
6159
/// This isn't required if sending to a person
6260
/// </summary>
6361
[DataMember]
64-
public string name
65-
{
66-
get; set;
67-
}
62+
public string Name { get; set; }
6863

6964
/// <summary>
7065
/// State/Province
7166
/// </summary>
7267
[DataMember]
73-
public string state
74-
{
75-
get; set;
76-
}
68+
public string State { get; set; }
7769

7870
/// <summary>
7971
/// street address
8072
/// </summary>
8173
[DataMember]
82-
public string street
83-
{
84-
get; set;
85-
}
74+
public string Street { get; set; }
8675

8776
/// <summary>
8877
/// zip code
8978
/// </summary>
9079
[DataMember]
91-
public int zip
92-
{
93-
get;
94-
}
80+
public int zip { get; set; }
9581
}
9682
}

0 commit comments

Comments
 (0)