public string Result { get; set; }
public string Timestamp { get; set; }
public string Message { get; set; }
public object? Payload { get; set; }
Timestamp = DateTime.UtcNow.ToString("O");
Payload = new AuctionInfo(
"Commerciale/Negozio - Paese",
"/storage/app/media/immobili/TLG2524-1/immagini/00.jpg",
"Bene occupato da terzi",
"Viale Sante Biasuzzi, 28/8",
new DateTime(2024, 10, 28, 15, 0, 0),
new DateTime(2024, 10, 31, 15, 0, 0),
public AuctionInfo(int auctionId, string auctionTitle, string mainImageUrl, string procedureTitle, int lotNumber, string categoryName, int area, string sellingPlace, string occupationStatus, string auctionType, string placeAddress, string placeZipCode, string placeCity, string placeCountry, string placeNation, bool flag108, bool upwardAuction, decimal basePrice, decimal minimumOffer, int bidIncrement, AwardCharges awardCharges, DateTime startDate, DateTime endDate, DateTime? calculatedEndDate, int currentBidValue, int currentBidId, string userStatus, bool isAwarded)
AuctionTitle = auctionTitle;
MainImageUrl = mainImageUrl;
ProcedureTitle = procedureTitle;
CategoryName = categoryName;
this.SellingPlace = sellingPlace;
OccupationStatus = occupationStatus;
AuctionType = auctionType;
PlaceAddress = placeAddress;
PlaceZipCode = placeZipCode;
PlaceCountry = placeCountry;
PlaceNation = placeNation;
UpwardAuction = upwardAuction;
MinimumOffer = minimumOffer;
BidIncrement = bidIncrement;
AwardCharges = awardCharges;
CalculatedEndDate = calculatedEndDate;
CurrentBidValue = currentBidValue;
CurrentBidId = currentBidId;
public int AuctionId { get; set; }
public string AuctionTitle { get; set; }
public string MainImageUrl { get; set; }
public string ProcedureTitle { get; set; }
public int LotNumber { get; set; }
public string CategoryName { get; set; }
public int Area { get; set; }
public string SellingPlace { get; set; }
public string OccupationStatus { get; set; }
public string AuctionType { get; set; }
public string PlaceAddress { get; set; }
public string PlaceZipCode { get; set; }
public string PlaceCity { get; set; }
public string PlaceCountry { get; set; }
public string PlaceNation { get; set; }
public bool Flag108 { get; set; }
public bool UpwardAuction { get; set; }
public decimal BasePrice { get; set; }
public decimal MinimumOffer { get; set; }
public int BidIncrement { get; set; }
public AwardCharges AwardCharges { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public DateTime? CalculatedEndDate { get; set; }
public int CurrentBidValue { get; set; }
public int CurrentBidId { get; set; }
public string UserStatus { get; set; }
public bool IsAwarded { get; set; }
public class AwardCharges
public int DepositPercentage { get; set; }
public decimal DepositValue { get; set; }
public decimal CompensationPercentage { get; set; }
public decimal CompensationValue { get; set; }
public decimal CompensationVatPercentage { get; set; }
public decimal CompensationVatValue { get; set; }
public decimal TotalAmount { get; set; }
public AwardCharges(int depositPercentage, decimal depositValue, decimal compensationPercentage, decimal compensationValue, decimal compensationVatPercentage, decimal compensationVatValue, decimal totalAmount)
DepositPercentage = depositPercentage;
DepositValue = depositValue;
CompensationPercentage = compensationPercentage;
CompensationValue = compensationValue;
CompensationVatPercentage = compensationVatPercentage;
CompensationVatValue = compensationVatValue;
TotalAmount = totalAmount;
public static void Main()
var test = new ApiResponse();
String jsonOutput = JsonConvert.SerializeObject(test);
Console.WriteLine(jsonOutput);