Beispiel #1
0
            public void OpenContentInfo(String roomId)
            {
                var    possibleTrackId = ParserUtils.TranslateTrackIdAlias(roomId);
                Intent intent          = new Intent();

                if (ParserUtils.LOCAL_TRACK_IDS.Contains(possibleTrackId))
                {
                    // This is a track; open up the sandbox for the track, since room IDs that are
                    // track IDs are sandbox areas in the map.
                    Uri trackVendorsUri = ScheduleContract.Tracks.BuildVendorsUri(possibleTrackId);
                    intent = new Intent(Intent.ActionView, trackVendorsUri);
                }
                else
                {
                    Uri roomUri = ScheduleContract.Rooms.BuildSessionsDirUri(roomId);
                    intent = new Intent(Intent.ActionView, roomUri);
                }

                _activity.RunOnUiThread(() => {
                    (_activity as BaseActivity).OpenActivityOrFragment(intent);
                });
            }
Beispiel #2
0
 /**
  * Generate a {@link #VENDOR_ID} that will always match the requested
  * {@link Vendors} details.
  */
 public static String GenerateVendorId(String companyLogo)
 {
     return(ParserUtils.SanitizeId(companyLogo));
 }
Beispiel #3
0
 /**
  * Generate a {@link #SPEAKER_ID} that will always match the requested
  * {@link Speakers} details.
  */
 public static String GenerateSpeakerId(String speakerLdap)
 {
     return(ParserUtils.SanitizeId(speakerLdap));
 }
Beispiel #4
0
 /**
  * Generate a {@link #SESSION_ID} that will always match the requested
  * {@link Sessions} details.
  */
 public static String GenerateSessionId(String title)
 {
     return(ParserUtils.SanitizeId(title));
 }
Beispiel #5
0
 /**
  * Generate a {@link #ROOM_ID} that will always match the requested
  * {@link Rooms} details.
  */
 public static String GenerateRoomId(String room)
 {
     return(ParserUtils.SanitizeId(room));
 }
Beispiel #6
0
 /**
  * Generate a {@link #BLOCK_ID} that will always match the requested
  * {@link Blocks} details.
  */
 public static String GenerateBlockId(long startTime, long endTime)
 {
     startTime /= DateUtils.SecondInMillis;
     endTime   /= DateUtils.SecondInMillis;
     return(ParserUtils.SanitizeId(startTime + "-" + endTime));
 }