Exemple #1
0
        /// <summary>
        /// Suica の残高を取得します。
        /// </summary>
        /// <returns>Suica の残高。</returns>
        public static int GetSuicaBalance()
        {
            var data = FelicaUtility.ReadWithoutEncryption(FelicaSystemCode.Suica, FelicaServiceCode.SuicaAttributes, 0);
            var item = new SuicaAttributesItem(data);

            return(item.Balance);
        }
Exemple #2
0
        /// <summary>
        /// WAON の残高を取得します。
        /// </summary>
        /// <returns>WAON の残高。</returns>
        public static int GetWaonBalance()
        {
            var data = FelicaUtility.ReadWithoutEncryption(FelicaSystemCode.Waon, FelicaServiceCode.WaonBalance, 0);
            var item = new WaonBalanceItem(data);

            return(item.Balance);
        }