Skip to content

Commit

Permalink
chore: add SamanTel phone number support
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsm74 committed Dec 30, 2023
1 parent d558906 commit 817e888
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/src/constants/phone_number/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,22 @@ const shatelMobile = {
),
};

const samanTel = {
'999': OperatorDetail(
provinces: [],
base: 'کشوری',
type: SimCardType.both,
operator: Operator.samanTel,
),
};

final List<String> prefixes = [
...MCI.keys,
...taliya.keys,
...rightTel.keys,
...irancell.keys,
...shatelMobile.keys,
...samanTel.keys,
];

final operators = {
Expand All @@ -203,6 +213,7 @@ final operators = {
...irancell,
...shatelMobile,
...rightTel,
...samanTel,
};

const shatelName = 'شاتل موبایل';
Expand All @@ -214,3 +225,5 @@ const irancellName = 'ایرانسل';
const taliaName = 'تالیا';

const rightTelName = 'رایتل';

const samanTelName = 'سامانتل';
1 change: 1 addition & 0 deletions lib/src/core/phone_number/models.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class Operator {
static const irancell = Operator._(irancellName);
static const taliya = Operator._(taliaName);
static const rightTel = Operator._(rightTelName);
static const samanTel = Operator._(samanTelName);

@override
bool operator ==(Object other) =>
Expand Down

0 comments on commit 817e888

Please sign in to comment.