@@ -0,0 +1,1971 @@
+package com.just.agentweb;%0A%0Aimport android.os.Parcel;%0Aimport android.os.Parcelable;%0A%0A/**%0A * Created by cenxiaozhong on 2018/1/3.%0A */%0A%0Apublic class Action implements Parcelable %7B%0A%0A    public transient static final int ACTION_PERMISSION = 1;%0A    public transient static final int ACTION_FILE = 2;%0A    public transient static final int ACTION_CAMERA = 3;%0A    private String%5B%5D permissions = new String%5B%5D%7B%7D;%0A    private int action;%0A    private int fromIntention;%0A%0A%0A    public String%5B%5D getPermissions() %7B%0A        return permissions;%0A    %7D%0A%0A    public int getAction() %7B%0A        return action;%0A    %7D%0A%0A    public Action() %7B%0A%0A    %7D%0A%0A%0A    protected Action(Parcel in) %7B%0A        permissions = in.createStringArray();%0A        action = in.readInt();%0A        fromIntention = in.readInt();%0A    %7D%0A%0A    @Override%0A    public void writeToParcel(Parcel dest, int flags) %7B%0A        dest.writeStringArray(permissions);%0A        dest.writeInt(action);%0A        dest.writeInt(fromIntention);%0A    %7D%0A%0A    @Override%0A    public int describeContents() %7B%0A        return 0;%0A    %7D%0A%0A    public static final Creator%3CAction%3E CREATOR = new Creator%3CAction%3E() %7B%0A        @Override%0A        public Action createFromParcel(Parcel in) %7B%0A            return new Action(in);%0A        %7D%0A%0A        @Override%0A        public Action%5B%5D newArray(int size) %7B%0A            return new Action%5Bsize%5D;%0A        %7D%0A    %7D;%0A%0A    public int getFromIntention() %7B%0A        return fromIntention;%0A    %7D%0A%0A    public static Action createPermissionsAction(String%5B%5D permissions) %7B%0A        Action mAction = new Action();%0A        mAction.setAction(Action.ACTION_PERMISSION);%0A        mAction.setPermissions(permissions);%0A        return mAction;%0A    %7D%0A%0A    public Action setFromIntention(int fromIntention) %7B%0A        this.fromIntention = fromIntention;%0A        return this;%0A    %7D%0A%0A%0A    public void setAction(int action) %7B%0A        this.action = action;%0A    %7D%0A%0A    public void setPermissions(String%5B%5D permissions) %7B%0A        permissions = permissions;%0A    %7D%0A%7D%0A

add Action