From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
— |
'UserID' ,
];
has mobile_attribute => (
is => 'ro' ,
isa => 'Object' ,
required => 1,
);
sub get_session_id {
my $self = shift ;
my $ma = $self ->mobile_attribute;
if ( $ma ->can( 'user_id' )) {
if ( my $user_id = $ma ->user_id) {
return $user_id ;
} else {
die "cannot detect mobile id from $ma" ;
}
} else {
die "this carrier doesn't supports user_id: $ma" ;
}
}
sub response_filter { }
no Moose; __PACKAGE__->meta->make_immutable;
1;
|