-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f3a493
commit b61cf7f
Showing
13 changed files
with
137 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
bin | ||
bin-debug | ||
bin-release | ||
.DS_Store | ||
.metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<fxpProperties abbreviated="false" authoringTool="Flex Builder" compiles="true" parentProject="40257871-b911-455d-b0ae-9babddd868be" projectUUID="40257871-b911-455d-b0ae-9babddd868be" pureCatalystProject="false" sdkVersion="4.5.2" uuid="8e85b75c-1431-49cb-aea3-44ff35af329b" version="15"> | ||
<projects/> | ||
<src/> | ||
<swc> | ||
<linked location="/extensions/as3c2dm.ane" path="/extensions/as3c2dm.ane" position="2" uuid="8e85b75c-1431-49cb-aea3-44ff35af329b"/> | ||
<linked location="sdkPlaceHolder" path="sdkPlaceHolder" position="0" uuid="8e85b75c-1431-49cb-aea3-44ff35af329b"/> | ||
<linked location="/libs" path="/libs" position="1" uuid="8e85b75c-1431-49cb-aea3-44ff35af329b"/> | ||
<linked location="/extensions/as3c2dm.ane" path="\extensions\as3c2dm.ane" position="2" uuid="8e85b75c-1431-49cb-aea3-44ff35af329b"/> | ||
</swc> | ||
<misc/> | ||
<theme/> | ||
<mxmlFormattingPrefs groupAttributesByState="true" maxLineWidth="100" mxmlAlignAttributes="true" mxmlAttributeOrder="id,userLabel,includeIn,excludeFrom,visible,x,y,z,left,right,top,bottom,width,height,minWidth,minHeight,maxWidth,maxHeight,label" mxmlKeepAttributeValuesOrganized="true"/> | ||
</fxpProperties> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
////////////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Copyright 2011 Piotr Walczyszyn (http://riaspace.com | @pwalczyszyn) | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
package com.riaspace.c2dm | ||
{ | ||
public final class C2DMErrorCodes | ||
{ | ||
/** | ||
* The device can't read the response, or there was a 500/503 from the server that can be retried later. The application should use exponential back off and retry. | ||
*/ | ||
public static const SERVICE_NOT_AVAILABLE:String = "SERVICE_NOT_AVAILABLE"; | ||
|
||
/** | ||
* There is no Google account on the phone. The application should ask the user to open the account manager and add a Google account. Fix on the device side. | ||
*/ | ||
public static const ACCOUNT_MISSING:String = "ACCOUNT_MISSING"; | ||
|
||
/** | ||
* Bad password. The application should ask the user to enter his/her password, and let user retry manually later. Fix on the device side. | ||
*/ | ||
public static const AUTHENTICATION_FAILED:String = "AUTHENTICATION_FAILED"; | ||
|
||
/** | ||
* The user has too many applications registered. The application should tell the user to uninstall some other applications, let user retry manually. Fix on the device side. | ||
*/ | ||
public static const TOO_MANY_REGISTRATIONS:String = "TOO_MANY_REGISTRATIONS"; | ||
|
||
/** | ||
* The sender account is not recognized. | ||
*/ | ||
public static const INVALID_SENDER:String = "INVALID_SENDER"; | ||
|
||
/** | ||
* Incorrect phone registration with Google. This phone doesn't currently support C2DM. | ||
*/ | ||
public static const PHONE_REGISTRATION_ERROR:String = "PHONE_REGISTRATION_ERROR"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
////////////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Copyright 2011 Piotr Walczyszyn (http://riaspace.com | @pwalczyszyn) | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
package com.riaspace.c2dm.events | ||
{ | ||
import flash.events.Event; | ||
|
||
public class C2DMErrorEvent extends Event | ||
{ | ||
public static const ERROR:String = "error"; | ||
|
||
public var errorCode:String; | ||
|
||
public function C2DMErrorEvent(type:String, errorCode:String, bubbles:Boolean=false, cancelable:Boolean=false) | ||
{ | ||
this.errorCode = errorCode; | ||
super(type, bubbles, cancelable); | ||
} | ||
|
||
override public function clone():Event | ||
{ | ||
return new C2DMErrorEvent(type, errorCode, bubbles, cancelable); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters