Skip to content

Commit

Permalink
Merge pull request #5 from Digitalroot-Valheim/develop
Browse files Browse the repository at this point in the history
Update AddFileToModRequest
  • Loading branch information
Digitalroot authored Dec 10, 2021
2 parents 0e3ed3b + fd375dd commit 40932ae
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,23 @@ public AddFileToModRequest(AddFileToModRequestModel addFileToModRequestModel)
AddParameter("game_id", addFileToModRequestModel.GameId);
AddParameter("name", addFileToModRequestModel.Name);
AddParameter("file-version", addFileToModRequestModel.FileVersion);
AddParameter("update-version", addFileToModRequestModel.UpdateVersion);
AddParameter("update-version", Convert.ToInt32(addFileToModRequestModel.UpdateVersion));
AddParameter("category", Convert.ToInt32(addFileToModRequestModel.Category));
AddParameter("brief-overview", addFileToModRequestModel.BriefOverview); // None? Can be empty
AddParameter("set_as_main_nmm", addFileToModRequestModel.SetAsMainNmm);
AddParameter("set_as_main_nmm", Convert.ToInt32(addFileToModRequestModel.SetAsMainNmm));
AddParameter("file_uuid", addFileToModRequestModel.FileUUID);
AddParameter("file_size", addFileToModRequestModel.FileSize.ToString());
AddParameter("mod_id", addFileToModRequestModel.ModID.ToString());
AddParameter("id", addFileToModRequestModel.ID.ToString());
AddParameter("action", addFileToModRequestModel.Action);
AddParameter("uploaded_file", addFileToModRequestModel.UploadedFile);
AddParameter("original_file", addFileToModRequestModel.OriginalFile);
AddParameter("requirements_pop_up", addFileToModRequestModel.RequirementPopUp);

AddParameter("remove_nmm_button", addFileToModRequestModel.RemoveNmmButton);
AddParameter("requirements_pop_up", Convert.ToInt32(addFileToModRequestModel.RequirementPopUp));
AddParameter("remove_nmm_button", Convert.ToInt32(addFileToModRequestModel.RemoveNmmButton));
if (addFileToModRequestModel.UpdateVersion)
{
AddParameter("new-existing", addFileToModRequestModel.NewExisting);
AddParameter("remove-old-version", addFileToModRequestModel.RemoveOldVersion);
AddParameter("new-existing", Convert.ToInt32(addFileToModRequestModel.NewExisting));
AddParameter("remove-old-version", Convert.ToInt32(addFileToModRequestModel.RemoveOldVersion));
if (addFileToModRequestModel.OldFileId != null) AddParameter("old_file_id", addFileToModRequestModel.OldFileId); // 7515
}

Expand Down

0 comments on commit 40932ae

Please sign in to comment.