Files
BackOffice.BFF/src/BackOffice.BFF.Application/NetworkMembershipCQ/Queries/GetUserNetworkInfo/GetUserNetworkInfoResponseDto.cs
T
masoodafar-web 19a717fc87
Build and Deploy / build (push) Successful in 2m12s
feat: expand network membership response with additional fields
2025-12-12 07:52:55 +03:30

68 lines
2.6 KiB
C#

namespace BackOffice.BFF.Application.NetworkMembershipCQ.Queries.GetUserNetworkInfo;
public class GetUserNetworkInfoResponseDto
{
// اطلاعات اصلی کاربر
public long Id { get; set; }
public long UserId { get; set; }
public string UserName { get; set; } = string.Empty;
public string Mobile { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string NationalCode { get; set; } = string.Empty;
public string ReferralCode { get; set; } = string.Empty;
public bool IsMobileVerified { get; set; }
public DateTime? BirthDate { get; set; }
public DateTime JoinedAt { get; set; }
// اطلاعات والد
public long? ParentId { get; set; }
public string ParentName { get; set; } = string.Empty;
public string ParentMobile { get; set; } = string.Empty;
// موقعیت در شبکه
public int NetworkLeg { get; set; }
public int NetworkLevel { get; set; }
public bool IsInNetwork { get; set; }
// اطلاعات فرزند چپ
public long? LeftChildId { get; set; }
public string LeftChildName { get; set; } = string.Empty;
public string LeftChildMobile { get; set; } = string.Empty;
public DateTime? LeftChildJoinedAt { get; set; }
// اطلاعات فرزند راست
public long? RightChildId { get; set; }
public string RightChildName { get; set; } = string.Empty;
public string RightChildMobile { get; set; } = string.Empty;
public DateTime? RightChildJoinedAt { get; set; }
// آمار فرزندان مستقیم
public int TotalChildren { get; set; }
public int LeftChildCount { get; set; }
public int RightChildCount { get; set; }
// آمار کل شبکه
public int TotalLeftLegMembers { get; set; }
public int TotalRightLegMembers { get; set; }
public int TotalNetworkSize { get; set; }
public int MaxNetworkDepth { get; set; }
// اطلاعات پکیج و دایا
public bool HasReceivedDayaCredit { get; set; }
public DateTime? DayaCreditReceivedAt { get; set; }
public int PackagePurchaseMethod { get; set; }
public bool HasPurchasedGoldenPackage { get; set; }
// آمار مالی
public double TotalEarnedCommission { get; set; }
public double TotalPaidCommission { get; set; }
public double PendingCommission { get; set; }
public int TotalBalancesEarned { get; set; }
// آمار فعالیت
public int ActiveMembersInNetwork { get; set; }
public int InactiveMembersInNetwork { get; set; }
public DateTime CreatedAt { get; set; }
}