예제 #1
0
    public void AppRequest(string message, FB_RequestActionType actionType, string objectId, List <object> filters = null, string[] excludeIds = null, int?maxRecipients = null, string data = "", string title = "")
    {
        if (!IsLoggedIn)
        {
            Debug.LogWarning("Auth user before AppRequest, fail event generated");
            FB_AppRequestResult r = new FB_AppRequestResult("", "User isn't authed");
            OnAppRequestCompleteAction(r);
            return;
        }

        FB.AppRequest(message, actionType, objectId, filters, excludeIds, maxRecipients, data, title);
    }
예제 #2
0
    public void AppRequest(string message, FB_RequestActionType actionType, string objectId, string[] to, string data = "", string title = "")
    {
        if (!IsLoggedIn)
        {
            Debug.LogWarning("Auth user before AppRequest, fail event generated");
            FB_AppRequestResult r = new FB_AppRequestResult("", "User isn't authed");
            OnAppRequestCompleteAction(r);
            return;
        }

        FB.AppRequest(message, actionType, objectId, to, data, title);
    }
예제 #3
0
    private OGActionType ConvertActionType(FB_RequestActionType actionType)
    {
        switch (actionType)
        {
        case FB_RequestActionType.AskFor:
            return(OGActionType.AskFor);

        case FB_RequestActionType.Send:
            return(OGActionType.Send);
        }

        return(OGActionType.AskFor);
    }
예제 #4
0
    private OGActionType ConvertActionType(FB_RequestActionType actionType)
    {
        switch (actionType)
        {
        case FB_RequestActionType.AskFor:
            return(OGActionType.ASKFOR);

        case FB_RequestActionType.Send:
            return(OGActionType.SEND);

        case FB_RequestActionType.Turn:
            return(OGActionType.TURN);
        }

        return(OGActionType.ASKFOR);
    }
예제 #5
0
 public void AppRequest(string message, FB_RequestActionType actionType, string objectId, List <object> filters = null, string[] excludeIds = null, int?maxRecipients = null, string data = "", string title = "")
 {
             #if FBV7_API_ENABLED
     FB.AppRequest(message, ConvertActionType(actionType), objectId, filters, excludeIds, maxRecipients, data, title, AppRequestCallback);
             #endif
 }
예제 #6
0
 public void AppRequest(string message, FB_RequestActionType actionType, string objectId, string[] to, string data = "", string title = "")
 {
             #if FBV7_API_ENABLED
     FB.AppRequest(message, ConvertActionType(actionType), objectId, to, data, title, AppRequestCallback);
             #endif
 }
예제 #7
0
	public void AppRequest(string message, FB_RequestActionType actionType, string objectId, List<object> filters = null, string[] excludeIds = null, int? maxRecipients = null, string data = "", string title = "") {
		#if FBV7_API_ENABLED
		FB.AppRequest(message, ConvertActionType(actionType), objectId, filters, excludeIds, maxRecipients, data, title, AppRequestCallback);
		#endif
	}
예제 #8
0
	public void AppRequest(string message, FB_RequestActionType actionType, string objectId, string[] to, string data = "", string title = "") {
		#if FBV7_API_ENABLED
		FB.AppRequest(message, ConvertActionType(actionType), objectId, to, data, title, AppRequestCallback);
		#endif
	}
예제 #9
0
	private OGActionType ConvertActionType(FB_RequestActionType actionType) {
		switch(actionType) {
		case FB_RequestActionType.AskFor:
			return OGActionType.ASKFOR;
		case FB_RequestActionType.Send:
			return OGActionType.SEND;
		case FB_RequestActionType.Turn:
			return OGActionType.TURN;
		}
		
		return OGActionType.ASKFOR;
	}
예제 #10
0
	private OGActionType ConvertActionType(FB_RequestActionType actionType) {
		switch(actionType) {
		case FB_RequestActionType.AskFor:
			return OGActionType.AskFor;
		case FB_RequestActionType.Send:
			return OGActionType.Send;
		}
		
		return OGActionType.AskFor;
	}