Created
March 16, 2014 12:36
-
-
Save msrivastav13/9582598 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class CommunityHelper{ | |
public static String communityId=Network.getNetworkId(); | |
public static ConnectApi.Community getCommunityInfo(){ | |
if(communityId!=null){ | |
return connectapi.Communities.getCommunity(communityId); | |
}else { | |
return null; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment