지금 코드에서는 일단 트레이너 아이디는 tid001, 유저 아이디는 id001로 정해놨음.
- 유저들의 프로필 목록 중 트레이너가 선택한 유저의 아이디를 가져왔다는 가정 하에 작성한 코드이다.
- 선택한 유저에게 제안서를 보낼 때 사용된다.
- 유저의 프로필을 누르면 가격 협의 가능 여부, 추천 운동 횟수 그리고 300자 이내의 코멘트를 입력할 수 있는 팝업창이 뜬다.
- 현재 코드에서는 코멘트는 필수가 아니지만 가격 협의 가능 여부와 추천 운동 횟수는 필수로 지정해놨다. (이 부분은 나중에 수정 가능성 높음)
- 정보들을 입력한 뒤 팝업창에서 보내기 버튼을 누르면 입력이 유효한지를 확인하고 유효하다면 파이어베이스에 정보를 저장함.
- 자신에게 제안서를 보낸 트레이너 목록 중 유저가 선택한 트레이너의 아이디를 가져왔다는 가정 하에 작성한 코드이다.
- 선택한 트레이너의 제안서를 보려고 할 때 사용된다.
- 트레이너의 프로필을 누르면 트레이너가 보낸 가격 협의 가능 여부, 추천 운동 횟수 그리고 300자 이내의 코멘트를 볼 수 있는 팝업창이 뜬다.
- 더보기를 누르면 트레이너의 상세 프로필을 볼 수 있다.