Skip to content

Commit

Permalink
- Started upgrading HoloOASIS Provider to the latest HoloNET version …
Browse files Browse the repository at this point in the history
…(v2.1.2).

- HcAvatar now extends HoloNETAuditEntryBaseClass.

- Removed id & user_id from HcAvatar & IHCAvatar interface.

- Renamed HcProfile to HcAvatar.

- Added HcAvatar property to HoloOASIS.

- HcAvatar is now initialized in the Initialize method in HoloOASIS.

- Removed older redudant HoloNET code.

- Updated LoadAvatarAsync method to work with latest HoloNET code (HcAvatar/HoloNETAuditEntryBaseClass).
  • Loading branch information
dellams committed Mar 21, 2023
1 parent b9ccd9d commit 4790abf
Show file tree
Hide file tree
Showing 6 changed files with 950 additions and 45 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

using NextGenSoftware.OASIS.API.Core;
using NextGenSoftware.Holochain.HoloNET.Client.TestHarness;
using NextGenSoftware.OASIS.API.Core.Enums;
using System;

Expand All @@ -11,10 +11,12 @@ namespace NextGenSoftware.OASIS.API.Providers.HoloOASIS
//}


public class HcAvatar : IHcAvatar
public class HcAvatar : HoloNETAuditEntryBaseClass, IHcAvatar
{
public Guid id { get; set; }
public Guid user_id { get; set; } //TODO: Remember to add this to the HC Rust code...
public HcAvatar() : base("oasis", "get_entry_avatar", "create_entry_avatar", "update_entry_avatar", "delete_entry_avatar") { }

//public Guid id { get; set; }
//public Guid user_id { get; set; } //TODO: Remember to add this to the HC Rust code...
public string username { get; set; }
public string password { get; set; }
public string email { get; set; }
Expand All @@ -26,7 +28,7 @@ public class HcAvatar : IHcAvatar
// public int Karma { get; private set; }
public int karma { get; set; } //TODO: This really needs to have a private setter but in the HoloOASIS provider it needs to copy the object along with each property... would prefer another work around if possible?
public int level { get; set; }
public string hc_address_hash { get; set; }
//public string hc_address_hash { get; set; }

public string provider_key { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

//using NextGenSoftware.OASIS.API.Core.Enums;
//using System;

//namespace NextGenSoftware.OASIS.API.Providers.HoloOASIS
//{
// //public class Avatar : API.Core.Avatar, IAvatar
// //{
// // public string HcAddressHash { get; set; }
// //}


// public class HcAvatar : IHcAvatar
// {
// public Guid id { get; set; }
// public Guid user_id { get; set; } //TODO: Remember to add this to the HC Rust code...
// public string username { get; set; }
// public string password { get; set; }
// public string email { get; set; }
// public string title { get; set; }
// public string first_name { get; set; }
// public string last_name { get; set; }
// public string dob { get; set; }
// public string address { get; set; }
// // public int Karma { get; private set; }
// public int karma { get; set; } //TODO: This really needs to have a private setter but in the HoloOASIS provider it needs to copy the object along with each property... would prefer another work around if possible?
// public int level { get; set; }
// public string hc_address_hash { get; set; }

// public string provider_key { get; set; }

// public HolonType holon_type { get; set; }
// }
//}
Loading

0 comments on commit 4790abf

Please sign in to comment.