app/src/main/java/com/mensa/zhmensa/component/fragments/MensaTab.java
/**
         * Creates a new instance. This function is used, since fragments get called with an empty constructor from android OS
         *
         * @param mensaId     unique mensa id that maps to a mensa in mensa manager
         * @param weekdayStr  requested weekday.  Gets Mapped using JSON to Weekday class
         * @param categoryStr requested category. Gets Mapped using JSON to Category class
         * @return Fragment that displays to tabs with menus for lunch or dinner
         */
Creates a new instance. This function is used, since fragments get called with an empty constructor from android OS
@param mensaId     unique mensa id that maps to a mensa in mensa manager
@param weekdayStr  requested weekday.  Gets Mapped using JSON to Weekday class
@param categoryStr requested category. Gets Mapped using JSON to Category class
@return Fragment that displays to tabs with menus for lunch or dinner
Creates a new instance . This function is used since fragments get called with an empty constructor from android OS @param mensaId unique mensa id that maps to a mensa in mensa manager @param weekdayStr requested weekday . Gets Mapped using JSON to Weekday class @param categoryStr requested category . Gets Mapped using JSON to Category class @return Fragment that displays to tabs with menus for lunch or dinner
@NonNull
        static MenuTabContentFragment newInstance(String mensaId, String weekdayStr, String categoryStr) {
            Bundle args = new Bundle();
            args.putString(MENSA_ID, mensaId);
            args.putString(WEEKDAY, weekdayStr);
            args.putString(CATEGORY, categoryStr);
            MenuTabContentFragment frag = new MenuTabContentFragment();
            frag.setArguments(args);
            return frag;
        }
@ NonNull static MenuTabContentFragment newInstance ( String mensaId , String weekdayStr , String categoryStr ) { Bundle args = new Bundle ( ) ; args . putString ( MENSA_ID , mensaId ) ; args . putString ( WEEKDAY , weekdayStr ) ; args . putString ( CATEGORY , categoryStr ) ; MenuTabContentFragment frag = new MenuTabContentFragment ( ) ; frag . setArguments ( args ) ; return frag ; }
Creates a new instance.
Creates a new instance .