Change String and url to be private

This commit is contained in:
atef 2025-10-20 15:00:38 +02:00
parent 2f0134d22f
commit 59652425cd
1 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,6 @@ using Convert = System.Convert;
namespace InnovEnergy.App.GrowattCommunication.SystemConfig; namespace InnovEnergy.App.GrowattCommunication.SystemConfig;
public record S3Config public record S3Config
{ {
public required String Bucket { get; init; } public required String Bucket { get; init; }
@ -15,10 +14,10 @@ public record S3Config
public required String Provider { get; init; } public required String Provider { get; init; }
public required String Key { get; init; } public required String Key { get; init; }
public required String Secret { get; init; } public required String Secret { get; init; }
public required String ContentType { get; init; } public required String ContentType { get; init; }
public String Host => $"{Bucket}.{Region}.{Provider}"; private String Host => $"{Bucket}.{Region}.{Provider}";
public String Url => $"https://{Host}"; private String Url => $"https://{Host}";
public IFlurlRequest CreatePutRequest(String s3Path) => CreateRequest("PUT", s3Path); public IFlurlRequest CreatePutRequest(String s3Path) => CreateRequest("PUT", s3Path);
public IFlurlRequest CreateGetRequest(String s3Path) => CreateRequest("GET", s3Path); public IFlurlRequest CreateGetRequest(String s3Path) => CreateRequest("GET", s3Path);