SelectOfferInfo
public SelectOfferResult SelectOfferInfo(
string player_uuid,
string language
);
コード例
public class SelectOfferResult (1)
{
public TPResult tpResult;
public List<OfferInfo> offer_info = new List<OfferInfo>();
public int succeeded_offers_num = 0;
public int failed_offers_num = 0;
}
// 以下はSelectOfferResultに使われる各クラスに関する説明
public enum TPResult
{
OK,
ERROR
}
public class OfferInfo (2)
{
public offerType offer_type;
public int offer_id;
public DateTime? offer_expires_in; (3)
// valid untilとvalid forを計算した値。終了日を指定しなかった場合はNULL
public string title;
public List<RecommendedProduct> recommended_products; (3)
// AIショップのみ該当する。カスタムオファーの場合は値なし(空のリスト)
public bool has_opened;
public bool checked_dont_show_today;
}
public enum offerType (4)
{
AI = 0,
Manual = 1
}
public class RecommendedProduct (5)
{
public string purchasable_slug;
public string product_index;
public string purchase_link;
public string store;
public DateTime? start_datetime;
public DateTime? end_datetime;
public bool is_in_sale_now; //start_datetimeとend_datetimeをUTC nowと比較した値
}
1 | Offerのインポートが成功した場合、有効なOfferの数はsucceeded_offers_num の値として返されます。
Offerのインポートは成功しましたが、Offerデータに問題がある場合、無効なOfferの数が
Offerのインポートに失敗した場合、 |
2 | OfferInfo :オファーの情報です。 |
3 | OfferInfo.offer_expires_in は、Offerの有効期限を示します。製品の有効期限は、 OfferInfo.recommended_products で確認できます。 |
4 | offerType enumでAIショップ(offerType.AI )とパーソナライズされたオファー(offerType.Manual )を区別します。 |
5 | AI商品の推薦方法
|
ゲーム「神弓」の |