Show
Ignore:
Timestamp:
04/11/08 14:35:48 (5 years ago)
Author:
tokuhirom
Message:

added is_supported_user_id method.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/HTTP-MobileAttribute/trunk/lib/HTTP/MobileAttribute/Plugin/ID.pm

    r9284 r9297  
    33use warnings; 
    44use base qw/HTTP::MobileAttribute::Plugin/; 
     5 
     6__PACKAGE__->depends([qw/IS IS::ThirdForce/]); 
    57 
    68sub thirdforce :CarrierMethod('ThirdForce', 'id') { 
     
    3638    my ($self, $c) = @_; 
    3739    $c->request->get('x-dcmguid'); 
     40} 
     41 
     42sub is_supported_id :Method { 
     43    my ($self, $c) = @_; 
     44 
     45    return ( $c->is_ezweb || ($c->is_thirdforce && !$c->is_type_c) || $c->is_docomo )  ? 1 : 0; 
    3846} 
    3947