mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-17 02:48:34 +03:00
cards: populate name property in Card, UsimCard and IsimCard
Even though Card, UsimCard and IsimCard are abstract classes which are normally only used to inherit from mit may make sense to pre-populate the name property with some meaningful value. Change-Id: Id643e1f83718aea073e7200aecbf2db2def8652f
This commit is contained in:
@@ -34,6 +34,8 @@ from pytlv.TLV import *
|
||||
|
||||
class Card(object):
|
||||
|
||||
name = 'SIM'
|
||||
|
||||
def __init__(self, scc):
|
||||
self._scc = scc
|
||||
self._adm_chv_num = 4
|
||||
@@ -291,6 +293,9 @@ class Card(object):
|
||||
self._scc.update_record(ef, rec_no, "ff" * len, force_len=False, verify=True)
|
||||
|
||||
class UsimCard(Card):
|
||||
|
||||
name = 'USIM'
|
||||
|
||||
def __init__(self, ssc):
|
||||
super(UsimCard, self).__init__(ssc)
|
||||
|
||||
@@ -361,6 +366,9 @@ class UsimCard(Card):
|
||||
return sw
|
||||
|
||||
class IsimCard(Card):
|
||||
|
||||
name = 'ISIM'
|
||||
|
||||
def __init__(self, ssc):
|
||||
super(IsimCard, self).__init__(ssc)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user