SKLADm/OzonStore.cs
2025-04-21 21:14:48 +07:00

28 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
namespace OzonInternalLabelPrinter
{
[Serializable] // Важно для возможной сериализации в будущем, хотя с JSON необязательно
public class OzonStore
{
public string StoreName { get; set; } // Имя, которое видит пользователь
public string ClientId { get; set; }
public string EncryptedApiKey { get; set; } // Храним ЗАШИФРОВАННЫЙ ключ
// Конструктор для удобства
public OzonStore(string name, string clientId, string encryptedKey)
{
StoreName = name;
ClientId = clientId;
EncryptedApiKey = encryptedKey;
}
public OzonStore() { } // Пустой конструктор для сериализации
// Переопределяем ToString, чтобы в ComboBox отображалось имя
public override string ToString()
{
return StoreName ?? "Без имени";
}
}
}